Skip to content

Commit

Permalink
add new proposal type & status
Browse files Browse the repository at this point in the history
  • Loading branch information
lukachi committed Jun 27, 2024
1 parent 9feb43d commit 8f5e8b1
Show file tree
Hide file tree
Showing 14 changed files with 32 additions and 12 deletions.
9 changes: 8 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [2.6.0] - 2024-06-27
### Added
- `@rarimo/client`:
- `PROPOSAL_STATUS_INVALID` proposal status
- `ArbitrarySigningProposal` proposal type

## [2.5.0] - 2024-05-01
### Added
- `@rarimo/client`:
Expand Down Expand Up @@ -547,7 +553,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Under the hood changes
- Initiated repo with `@rarimo/provider` and `@rarimo/nft-checkout` packages

[Unreleased]: https://github.com/rarimo/js-sdk/compare/2.5.0...HEAD
[Unreleased]: https://github.com/rarimo/js-sdk/compare/2.6.0...HEAD
[2.6.0]: https://github.com/rarimo/js-sdk/compare/2.5.0...2.6.0
[2.5.0]: https://github.com/rarimo/js-sdk/compare/2.4.0...2.5.0
[2.4.0]: https://github.com/rarimo/js-sdk/compare/2.3.0...2.4.0
[2.3.0]: https://github.com/rarimo/js-sdk/compare/2.2.0...2.3.0
Expand Down
2 changes: 1 addition & 1 deletion packages/bridge/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@rarimo/bridge",
"version": "2.5.0",
"version": "2.6.0",
"description": "Internal tools that other Rarimo packages use to bridge tokens.",
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion packages/client/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@rarimo/client",
"version": "2.5.0",
"version": "2.6.0",
"description": "The Rarimo chain client",
"repository": {
"type": "git",
Expand Down
10 changes: 10 additions & 0 deletions packages/client/src/codec/cosmos/gov/v1beta1/gov.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,11 @@ export enum ProposalStatus {
* failed.
*/
PROPOSAL_STATUS_FAILED = 5,
/**
* PROPOSAL_STATUS_INVALID - PROPOSAL_STATUS_INVALID defines a proposal status of a proposal that has
* been deposited not enough.
*/
PROPOSAL_STATUS_INVALID = 6,
UNRECOGNIZED = -1,
}

Expand All @@ -115,6 +120,9 @@ export function proposalStatusFromJSON(object: any): ProposalStatus {
case 5:
case "PROPOSAL_STATUS_FAILED":
return ProposalStatus.PROPOSAL_STATUS_FAILED;
case 6:
case "PROPOSAL_STATUS_INVALID":
return ProposalStatus.PROPOSAL_STATUS_INVALID;
case -1:
case "UNRECOGNIZED":
default:
Expand All @@ -136,6 +144,8 @@ export function proposalStatusToJSON(object: ProposalStatus): string {
return "PROPOSAL_STATUS_REJECTED";
case ProposalStatus.PROPOSAL_STATUS_FAILED:
return "PROPOSAL_STATUS_FAILED";
case ProposalStatus.PROPOSAL_STATUS_INVALID:
return "PROPOSAL_STATUS_INVALID";
case ProposalStatus.UNRECOGNIZED:
default:
return "UNRECOGNIZED";
Expand Down
3 changes: 3 additions & 0 deletions packages/client/src/enums/gov.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ export enum ProposalStatus {
Rejected = 4,
//Defines a proposal status of a proposal that has failed.
Failed = 5,
Invalid = 6,
Unrecognized = -1,
}

Expand Down Expand Up @@ -77,4 +78,6 @@ export enum ProposalType {
// CSCAList
EditCSCAListProposal = 'EditCSCAListProposal',
ReplaceCSCAListProposal = 'ReplaceCSCAListProposal',

ArbitrarySigningProposal = 'ArbitrarySigningProposal',
}
2 changes: 1 addition & 1 deletion packages/nft-checkout/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@rarimo/nft-checkout",
"version": "2.5.0",
"version": "2.6.0",
"description": "Features of the Rarimo SDK that create cross-chain transactions based on the Rarimo protocol.",
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion packages/provider/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@rarimo/provider",
"version": "2.5.0",
"version": "2.6.0",
"description": "A common interface for access to wallets (EVM and non-EVM) in the Rarimo SDK, used by packages that provide access to wallets on specific chains such as @rarimo/providers-evm, @rarimo/providers-solana, and @rarimo/providers-near.",
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion packages/providers-evm/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@rarimo/providers-evm",
"version": "2.5.0",
"version": "2.6.0",
"description": "Features of the Rarimo SDK that provide access to wallets and the ability to interact with them on EVM-compatible blockchains.",
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion packages/providers-near/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@rarimo/providers-near",
"version": "2.5.0",
"version": "2.6.0",
"description": "Features of the Rarimo SDK that provide access to wallets and the ability to interact with them on the NEAR blockchain.",
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion packages/providers-solana/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@rarimo/providers-solana",
"version": "2.5.0",
"version": "2.6.0",
"description": "Features of the Rarimo SDK that provide access to wallets and the ability to interact with them on the Solana blockchain.",
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion packages/react-nft-checkout/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@rarimo/react-nft-checkout",
"version": "2.5.0",
"version": "2.6.0",
"description": "React components that you can use in your UI to create cross-chain transactions with the Rarimo protocol.",
"license": "MIT",
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion packages/react-provider/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@rarimo/react-provider",
"version": "2.5.0",
"version": "2.6.0",
"description": "Tools to connect to wallets in React applications through the Rarimo SDK.",
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion packages/shared/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@rarimo/shared",
"version": "2.5.0",
"version": "2.6.0",
"description": "Utility functions, types and constants shared across Rarimo packages.",
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion packages/swap/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@rarimo/swap",
"version": "2.5.0",
"version": "2.6.0",
"description": "Internal tools that other Rarimo packages use to swap tokens.",
"repository": {
"type": "git",
Expand Down

0 comments on commit 8f5e8b1

Please sign in to comment.