Skip to content

Commit

Permalink
feat: added text proposal decomposer
Browse files Browse the repository at this point in the history
  • Loading branch information
bangjelkoski committed Aug 20, 2021
1 parent 2bb88b9 commit 2f6f887
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 1 deletion.
11 changes: 11 additions & 0 deletions packages/chain-consumer/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,17 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## [0.0.72](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/chain-consumer@0.0.71...@injectivelabs/chain-consumer@0.0.72) (2021-08-20)


### Features

* added text proposal decomposer ([70b510a](https://github.com/InjectiveLabs/injective-ts/commit/70b510a72d52c4e8805c31b51ff1f7bb51e4739c))





## [0.0.71](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/chain-consumer@0.0.70...@injectivelabs/chain-consumer@0.0.71) (2021-08-10)


Expand Down
2 changes: 1 addition & 1 deletion packages/chain-consumer/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@injectivelabs/chain-consumer",
"description": "Interacting with our Chain API made easy. Can be reused throughout Injective's projects.",
"version": "0.0.71",
"version": "0.0.72",
"license": "MIT",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import { TextProposal } from '@injectivelabs/chain-api/cosmos/gov/v1beta1/gov_pb'

export class CosmosProposalDecomposer {
static textProposal(content: Uint8Array) {
return TextProposal.deserializeBinary(content)
}
}
1 change: 1 addition & 0 deletions packages/chain-consumer/src/decomposers/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
export * from './ExchangeProposalDecomposer'
export * from './GovernanceProposalDecomposer'
export * from './CosmosProposalDecomposer'

0 comments on commit 2f6f887

Please sign in to comment.