# Changelog All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines. ### [1.2.4](https://github.com/paritytech/txwrapper/compare/v1.2.3...v1.2.4) (2020-04-01) ### Bug Fixes * **deps:** Update @polkadot/api to v1.9.1 ([#106](https://github.com/paritytech/txwrapper/issues/106)) ([4a76397](https://github.com/paritytech/txwrapper/commit/4a76397688121dcd943e6f68385306cd08f94e04)) ### [1.2.3](https://github.com/paritytech/txwrapper/compare/v1.2.2...v1.2.3) (2020-03-31) ### Bug Fixes * **deps:** Update @polkadot/api to v1.9 ([#105](https://github.com/paritytech/txwrapper/issues/105)) ([ae96a52](https://github.com/paritytech/txwrapper/commit/ae96a524b30ac38f9d8df6d42155123804b0fe4e)) * add westend prefix ([#96](https://github.com/paritytech/txwrapper/issues/96)) ([fa7699e](https://github.com/paritytech/txwrapper/commit/fa7699e078a7ae7555c5130398d21b0297b107b1)) ### [1.2.2](https://github.com/paritytech/txwrapper/compare/v1.2.1...v1.2.2) (2020-03-16) ### Bug Fixes * Let tsc only build src folder ([#95](https://github.com/paritytech/txwrapper/issues/95)) ([c6f2b83](https://github.com/paritytech/txwrapper/commit/c6f2b83bbcbb24f08625710ac646f813a30cda26)) ### [1.2.1](https://github.com/paritytech/txwrapper/compare/v1.2.0...v1.2.1) (2020-03-16) ### Bug Fixes * Add options to createSignedTx and createSigningPayload ([#91](https://github.com/paritytech/txwrapper/issues/91)) ([d72ac3e](https://github.com/paritytech/txwrapper/commit/d72ac3eaf5e9d613ac053b9bf93491a09cfae64b)) ## [1.2.0](https://github.com/paritytech/txwrapper/compare/v1.1.1...v1.2.0) (2020-03-12) ### Features * Pass options object as second argument in decode* ([#88](https://github.com/paritytech/txwrapper/issues/88)) ([97ccc31](https://github.com/paritytech/txwrapper/commit/97ccc31bcf62142e215085e107073ba2e085c9cb)) ### [1.1.1](https://github.com/paritytech/txwrapper/compare/v1.1.0...v1.1.1) (2020-03-11) ### Bug Fixes * Export methods object ([#87](https://github.com/paritytech/txwrapper/issues/87)) ([1819373](https://github.com/paritytech/txwrapper/commit/18193732b17aca892831d4e4fc26c27cb0a76f94)) ## [1.1.0](https://github.com/paritytech/txwrapper/compare/v1.0.0...v1.1.0) (2020-03-10) ### Features * Add new calls for staking, democracy and vesting pallets ([#84](https://github.com/paritytech/txwrapper/issues/84)) ([819d11e](https://github.com/paritytech/txwrapper/commit/819d11ecad0fc0501702d7e823cac860385c4c10)) ## [1.0.0](https://github.com/paritytech/txwrapper/compare/v0.4.8...v1.0.0) (2020-02-26) No breaking change. This package will follow [semver](https://semver.org/) henceforth. ### [0.4.8](https://github.com/paritytech/txwrapper/compare/v0.4.7...v0.4.8) (2020-02-26) ### Features * Add governance calls ([#62](https://github.com/paritytech/txwrapper/issues/62)) ([528f9ed](https://github.com/paritytech/txwrapper/commit/528f9ed8454c37cf13fc050eb763c383aafbc043)) ### Bug Fixes * Update to latest @polkadot/api ([#71](https://github.com/paritytech/txwrapper/issues/71)) ([8c4910c](https://github.com/paritytech/txwrapper/commit/8c4910cc5039543b8c550b211874038aa7a37fd8)) - Note: you might need to bump `typescript` to `>=3.8.2`. ### [0.4.7](https://github.com/paritytech/txwrapper/compare/v0.4.6...v0.4.7) (2020-02-06) ### Bug Fixes * Use again Capitalized enum in payee ([#57](https://github.com/paritytech/txwrapper/issues/57)) ([694148d](https://github.com/paritytech/txwrapper/commit/694148df4813fd9264872fbf453df422270c82a1)) ### [0.4.6](https://github.com/paritytech/txwrapper/compare/v0.4.5...v0.4.6) (2020-01-31) ### Features * Add staking::{chill, validate} and session::setKeys ([#51](https://github.com/paritytech/txwrapper/issues/51)) ([f5a6eed](https://github.com/paritytech/txwrapper/commit/f5a6eed9040bd74daca2aa8b414de403d88d1aef)) ### [0.4.5](https://github.com/paritytech/txwrapper/compare/v0.4.4...v0.4.5) (2020-01-21) ### Bug Fixes * Add default values for tip and validityPeriod ([#41](https://github.com/paritytech/txwrapper/issues/41)) ([44cefad](https://github.com/paritytech/txwrapper/commit/44cefadafcffef9279375a62c226ad9cc2e4e01a)) ### [0.4.4](https://github.com/paritytech/txwrapper/compare/v0.4.3...v0.4.4) (2020-01-15) ### Features * Add bondExtra and withdrawUnbonded ([#30](https://github.com/paritytech/txwrapper/issues/30)) ([23f298f](https://github.com/paritytech/txwrapper/commit/23f298f54fe332de105f9ac1265d859995e33a12)) ### [0.4.3](https://github.com/paritytech/txwrapper/compare/v0.4.2...v0.4.3) (2020-01-10) ### [0.4.2](https://github.com/paritytech/txwrapper/compare/v0.4.1...v0.4.2) (2020-01-03) ### Bug Fixes * Update polkadot JS to make it work kusama1033 ([#27](https://github.com/paritytech/txwrapper/issues/27)) ([6352732](https://github.com/paritytech/txwrapper/commit/6352732a1977f6b482664a19178594351b8bb745)) ### [0.4.1](https://github.com/paritytech/txwrapper/compare/v0.4.0...v0.4.1) (2020-01-03) ### Bug Fixes * Update polkadot-js API ([#26](https://github.com/paritytech/txwrapper/issues/26)) ([b18aae0](https://github.com/paritytech/txwrapper/commit/b18aae084cb189cb42bd191f7f7c9c5e8edc6e55)) ## [0.4.0](https://github.com/paritytech/txwrapper/compare/v0.3.2...v0.4.0) (2020-01-02) ### ⚠ BREAKING CHANGES * - Instead of importing methods (like `bond`, `balanceTransfer`) directly from the root, the package exposes a `methods` object in the root, and this object contains all available methods organized by pallet: ```diff - import { bond, balanceTransfer } from '@amaurymartiny/txwrapper'; + import { methods } from '@amaurymartiny/txwrapper'; - bond(...); - balanceTransfer(...); + methods.staking.bond(...); + methods.balances.tranfer({dest: '...', value: }, {blockHash: '0x...'}); + methods.balances.transferKeepAlive(...); ``` - All the methods under `methods.*.*` take now 2 arguments: the first one is the actual args specific to the tx method, and the second one is `BaseTxInfo`, common to all transactions ```typescript methods.staking.nominate({target: ['F1...']}, {blockHash: '0x..', ...}); ``` - `balances::transfer` arguments has been renamed from `{to, amount}` to `{dest, value}`, to reflect the rust codebase: ```typescript methods.balances.transfer({dest: '5....', value: 100}, {blockHash: '0x..', ...}); ``` ### Features * Add SS58 parameter to decode suite ([#22](https://github.com/paritytech/txwrapper/issues/22)) ([3f7dd01](https://github.com/paritytech/txwrapper/commit/3f7dd01e4853535229d6f43495401be2b2a4fc2f)) * Put all available methods under `method.*` ([#23](https://github.com/paritytech/txwrapper/issues/23)) ([77176a3](https://github.com/paritytech/txwrapper/commit/77176a3f4b66323e5c8994b065e14ab26cf7245c)) ### [0.3.2](https://github.com/amaurymartiny/txwrapper/compare/v0.3.1...v0.3.2) (2019-12-30) ### Features * Add staking functions ([#19](https://github.com/amaurymartiny/txwrapper/issues/19)) ([28dd82c](https://github.com/amaurymartiny/txwrapper/commit/28dd82c25b945586c9163f00a9dadf2ce148d3be)) ### [0.3.1](https://github.com/amaurymartiny/txwrapper/compare/v0.3.0...v0.3.1) (2019-12-16) ### Features * Add ss58Format as param to importPrivateKey ([#16](https://github.com/amaurymartiny/txwrapper/issues/16)) ([f47611e](https://github.com/amaurymartiny/txwrapper/commit/f47611ea569f72ca0e98f4c9a296ab5a65c84cea)) ### Bug Fixes * Add decodeSigningPayload to decode export ([#15](https://github.com/amaurymartiny/txwrapper/issues/15)) ([38505a6](https://github.com/amaurymartiny/txwrapper/commit/38505a6f9841a93c41bb8ee41780544ac7071a73)) * Put function importPrivateKey in correct file ([#14](https://github.com/amaurymartiny/txwrapper/issues/14)) ([14e1c27](https://github.com/amaurymartiny/txwrapper/commit/14e1c275ee2ba42f03d97a89c7cef6d5c42ca90c)) ## [0.3.0](https://github.com/amaurymartiny/txwrapper/compare/v0.2.0...v0.3.0) (2019-12-11) ### ⚠ BREAKING CHANGES * `generateKeypair` has been removed. ### Features * Add importPrivateKey ([#13](https://github.com/amaurymartiny/txwrapper/issues/13)) ([d26ae4a](https://github.com/amaurymartiny/txwrapper/commit/d26ae4ac7dee6999bd9065fec62a8ccd1904dd66)) ## [0.2.0](https://github.com/amaurymartiny/txwrapper/compare/v0.1.3...v0.2.0) (2019-12-06) ### ⚠ BREAKING CHANGES * - `decodeSignedTx`, `decodeSigningPayload`, `decodeUnsignedTx` are not exposed from `@amaurymartiny/txwrapper` root anymore, as they are considered low-level. Consider using the high-level `decode` function, which can decode an unsigned tx or a signed tx. ```diff - import { decodeSignedTx } from '@amaurymartiny/txwrapper'; + import { decode } from '@amaurymartiny/txwrapper'; - decodeSignedTx('0x...'); + decode('0x...'); ``` * - If you still need to access the above functions separately, please use e.g. `import { decodeSigningPayload } from '@amaurymartiny/txwrapper/lib/decode/decodeSigningPayload'` ### Features * Add `decode` for signedTx and signingPayload ([#10](https://github.com/amaurymartiny/txwrapper/issues/10)) ([674253e](https://github.com/amaurymartiny/txwrapper/commit/674253e7e1987a2190137a22841465b885071b69)) * Generic `decode` also decodes unsigned ([#12](https://github.com/amaurymartiny/txwrapper/issues/12)) ([a91f7ba](https://github.com/amaurymartiny/txwrapper/commit/a91f7ba8132e146ff2c52215c9e003a9998e752e)) ### [0.1.3](https://github.com/amaurymartiny/txwrapper/compare/v0.1.2...v0.1.3) (2019-12-05) ### Bug Fixes * Fix Polkadot SS58 prefix ([#9](https://github.com/amaurymartiny/txwrapper/issues/9)) ([dd63aa5](https://github.com/amaurymartiny/txwrapper/commit/dd63aa583f0323cabb0a88afbb3b08c14e32260e)) ### [0.1.2](https://github.com/amaurymartiny/txwrapper/compare/v0.1.1...v0.1.2) (2019-12-05) ### Bug Fixes * Add ss58 prefix for Polkadot ([#8](https://github.com/amaurymartiny/txwrapper/issues/8)) ([5f9fde8](https://github.com/amaurymartiny/txwrapper/commit/5f9fde87c912c86f0bb837ec746f4c138f5d0cf1)) ### [0.1.1](https://github.com/amaurymartiny/txwrapper/compare/v0.1.0...v0.1.1) (2019-12-03) ### Bug Fixes * Better typescript typings ([e9a7450](https://github.com/amaurymartiny/txwrapper/commit/e9a7450960def9cb00c32e54a61a8a09d68585c4)) ## [0.1.0](https://github.com/amaurymartiny/txwrapper/compare/v0.0.5...v0.1.0) (2019-12-03) ### ⚠ BREAKING CHANGES * - `decodeTx` has been renamed to `decodeSignedTx` for clarity ### Features * Add decodeSigningPayload and getTxHash ([#7](https://github.com/amaurymartiny/txwrapper/issues/7)) ([ece7146](https://github.com/amaurymartiny/txwrapper/commit/ece7146336e3846958f721b747fea7dfdc7679ac)) * Add decodeUnsignedTx ([#6](https://github.com/amaurymartiny/txwrapper/issues/6)) ([2a1460c](https://github.com/amaurymartiny/txwrapper/commit/2a1460c23e8d3675e6424d0468ea7b144117b741)) ### Bug Fixes * Fix keepAlive ([#5](https://github.com/amaurymartiny/txwrapper/issues/5)) ([ef676a0](https://github.com/amaurymartiny/txwrapper/commit/ef676a0ee111924656b73f01fe35789b39290604)) ### [0.0.5](https://github.com/amaurymartiny/txwrapper/compare/v0.0.4...v0.0.5) (2019-12-02) ### Features * Add balances::transfer_keep_alive ([#4](https://github.com/amaurymartiny/txwrapper/issues/4)) ([d480fb9](https://github.com/amaurymartiny/txwrapper/commit/d480fb9de9d23c652172386554c20db621ec4e2e)) ### [0.0.4](https://github.com/amaurymartiny/txwrapper/compare/v0.0.3...v0.0.4) (2019-12-02) ### Bug Fixes * Small bugs here and there ([#3](https://github.com/amaurymartiny/txwrapper/issues/3)) ([f300844](https://github.com/amaurymartiny/txwrapper/commit/f300844c87e4954711aafd5393e7247295059a81)) ### [0.0.3](https://github.com/amaurymartiny/txwrapper/compare/v0.0.2...v0.0.3) (2019-11-29) ### [0.0.2](https://github.com/amaurymartiny/txwrapper/compare/v0.0.1...v0.0.2) (2019-11-29) ### Bug Fixes - Output ts declaration files ([5e0d0ff](https://github.com/amaurymartiny/txwrapper/commit/5e0d0ff8f82e49dd6cca66e1180838116014413e)) ### 0.0.1 (2019-11-29) ### Features - Add deriveAddress ([b9a1cc8](https://github.com/amaurymartiny/txwrapper/commit/b9a1cc8a3745194e7f12043606009751688464df)) - Add generateKeyPair ([a8d817d](https://github.com/amaurymartiny/txwrapper/commit/a8d817d041830f5243ad9d655288e11e88803bd2)) - balanceTransfer ([a4df58a](https://github.com/amaurymartiny/txwrapper/commit/a4df58aaf4fa18903c7d5a035de488f1af8fb881)) - decodeTx ([1135161](https://github.com/amaurymartiny/txwrapper/commit/1135161bf7837c7ffd8243d58279a3108f1a1e51)) ### Bug Fixes - Export everything ([0522dd8](https://github.com/amaurymartiny/txwrapper/commit/0522dd81073120a11d4bea20f43b4c88d9f207e3))