# 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. ### [3.10.12](https://github.com/paritytech/txwrapper/compare/v3.10.11...v3.10.12) (2021-03-02) ### [3.10.11](https://github.com/paritytech/txwrapper/compare/v3.10.10...v3.10.11) (2021-02-23) ### Bug Fixes * Update `RewardDestination` for `staking.setPayee` ([#393](https://github.com/paritytech/txwrapper/issues/393)) ([bdafb18](https://github.com/paritytech/txwrapper/commit/bdafb18530e9b3556dbbeda5401fbaf259683093)) ### [3.10.10](https://github.com/paritytech/txwrapper/compare/v3.10.9...v3.10.10) (2021-02-15) ### [3.10.9](https://github.com/paritytech/txwrapper/compare/v3.10.8...v3.10.9) (2021-02-10) ### Bug Fixes * 10 decimals for DOT ([#386](https://github.com/paritytech/txwrapper/issues/386)) ([6d868c5](https://github.com/paritytech/txwrapper/commit/6d868c54dd00efd86e563e6f273942a294add5e2)) ### [3.10.8](https://github.com/paritytech/txwrapper/compare/v3.10.7...v3.10.8) (2021-02-03) ### Bug Fixes * testUtil specVersion 9999 => 2025 ([0b8457c](https://github.com/paritytech/txwrapper/commit/0b8457c52f0c7376de52aee8e2eab6cffa62d273)) * upgrade packaging ([abeed34](https://github.com/paritytech/txwrapper/commit/abeed34cb389261e16b7d65cf5da95709e2e6599)) ### [3.10.7](https://github.com/paritytech/txwrapper/compare/v3.10.6...v3.10.7) (2021-01-29) ### Bug Fixes * Silence misleading error message when decoding signed tx ([#343](https://github.com/paritytech/txwrapper/issues/343)) ([1c9166e](https://github.com/paritytech/txwrapper/commit/1c9166e21b9c8cfa7264331a934abc0fbb7e03fd)) ### [3.10.6](https://github.com/paritytech/txwrapper/compare/v3.10.5...v3.10.6) (2021-01-04) ### Bug Fixes * Accommodate polkadot-js meta update & AbstractInt.toJSON update ([#352](https://github.com/paritytech/txwrapper/issues/352)) ([56a1e80](https://github.com/paritytech/txwrapper/commit/56a1e804809eaf8ed3a2b5a9f8517b29a7482fb4)) ### [3.10.5](https://github.com/paritytech/txwrapper/compare/v3.10.4...v3.10.5) (2020-12-29) ### [3.10.4](https://github.com/paritytech/txwrapper/compare/v3.10.3...v3.10.4) (2020-12-16) ### [3.10.3](https://github.com/paritytech/txwrapper/compare/v3.10.1...v3.10.3) (2020-11-20) ### Bug Fixes * Adjust imports to accomodate polkadot-js/api bump; bump deps to latest ([#305](https://github.com/paritytech/txwrapper/issues/305)) ([4a341c0](https://github.com/paritytech/txwrapper/commit/4a341c0a6c4d15be7d6a8dc4a47473620d5f4b6a)) ### [3.10.1](https://github.com/paritytech/txwrapper/compare/v3.10.0...v3.10.1) (2020-10-13) ### Bug Fixes * Update from TRANSACTION_VERSION to EXTRINSIC_VERSION; Bump polkadot-js/api to v2.1.1 ([#267](https://github.com/paritytech/txwrapper/issues/267)) ([78c691c](https://github.com/paritytech/txwrapper/commit/78c691cc7657d70337c7cca3a6e51b0a141d6113)) ## [3.10.0](https://github.com/paritytech/txwrapper/compare/v3.9.0...v3.10.0) (2020-10-04) ### Features * Add `proxy.{proxyAnnounced, announce}`, `utility.asDerivative` ([#260](https://github.com/paritytech/txwrapper/issues/260)) ([360aa2e](https://github.com/paritytech/txwrapper/commit/360aa2ecc03ce5ada33f9557a2190d96840ca19d)) ## [3.9.0](https://github.com/paritytech/txwrapper/compare/v3.8.1...v3.9.0) (2020-09-29) ### Features * **types:** Add support for new treasury types so latest metadata decorates correctly ([#259](https://github.com/paritytech/txwrapper/issues/259)) ([632b227](https://github.com/paritytech/txwrapper/commit/632b227bc091d58effb688bc7c6e7bf4dd022bec)) ### [3.8.1](https://github.com/paritytech/txwrapper/compare/v3.8.0...v3.8.1) (2020-09-29) ## [3.8.0](https://github.com/paritytech/txwrapper/compare/v3.7.0...v3.8.0) (2020-09-04) ### Features * Add `proxy.rejectAnnouncement`; Update `proxy.addProxy` and `proxy.removeProxy` ([#237](https://github.com/paritytech/txwrapper/issues/237)) ([15bb86c](https://github.com/paritytech/txwrapper/commit/15bb86c91b45ff2e948bdfff5a540fba23d5589f)) ## [3.7.0](https://github.com/paritytech/txwrapper/compare/v3.6.1...v3.7.0) (2020-08-20) ### Features * Add string type for `staking.unbond` `value` ([#223](https://github.com/paritytech/txwrapper/issues/223)) ([305412c](https://github.com/paritytech/txwrapper/commit/305412c58556380502134a94d8b61187dd4fc163)) ### [3.6.1](https://github.com/paritytech/txwrapper/compare/v3.6.0...v3.6.1) (2020-08-05) ### Bug Fixes * bond and bondExtra value type number or string ([#209](https://github.com/paritytech/txwrapper/issues/209)) ([682850e](https://github.com/paritytech/txwrapper/commit/682850e97278ddcb01fbebf18b46bf3290bcbd64)) ## [3.6.0](https://github.com/paritytech/txwrapper/compare/v3.5.1...v3.6.0) (2020-08-04) ### Features * Add optional `toInt` flag on decode methods ([#207](https://github.com/paritytech/txwrapper/issues/207)) ([b94a727](https://github.com/paritytech/txwrapper/commit/b94a72734548f1015201b5e3610781a1e290d00b)) ### Bug Fixes * bump dot-prop above vulnerable version ([#200](https://github.com/paritytech/txwrapper/issues/200)) ([dd422a9](https://github.com/paritytech/txwrapper/commit/dd422a982cb50d4b1d667e04637cf8e0ce56f6a2)) ### [3.5.1](https://github.com/paritytech/txwrapper/compare/v3.5.0...v3.5.1) (2020-07-14) ## [3.5.0](https://github.com/paritytech/txwrapper/compare/v3.4.0...v3.5.0) (2020-07-14) ### Features * Add `poll.vote` ([#187](https://github.com/paritytech/txwrapper/issues/187)) ([013027c](https://github.com/paritytech/txwrapper/commit/013027c92bc09a68ae0042c2c4ce29fdedbcd16f)) ## [3.5.0](https://github.com/paritytech/txwrapper/compare/v3.4.0...v3.5.0) (2020-07-14) ### Features * Add `poll.vote` ([#187](https://github.com/paritytech/txwrapper/pull/187)) ([013027c](https://github.com/paritytech/txwrapper/commit/013027c92bc09a68ae0042c2c4ce29fdedbcd16f)) ## [3.4.0](https://github.com/paritytech/txwrapper/compare/v3.3.0...v3.4.0) (2020-07-12) ### Features * Add `staking.rebond` ([#184](https://github.com/paritytech/txwrapper/issues/184)) ([5fd1eab](https://github.com/paritytech/txwrapper/commit/5fd1eab241e9a502d9e09bf8869f1c6bcb02f7af)) ## [3.3.0](https://github.com/paritytech/txwrapper/compare/v3.2.0...v3.3.0) (2020-06-24) ### Features * Add `staking.setPayee` ([#176](https://github.com/paritytech/txwrapper/issues/176)) ([3e5273a](https://github.com/paritytech/txwrapper/commit/3e5273a57610cc82374e0cc917e8ebc32d639675)) ## [3.2.0](https://github.com/paritytech/txwrapper/compare/v3.1.4...v3.2.0) (2020-06-16) ### Features * Add proxy methods and `staking.payoutStakers` ([#172](https://github.com/paritytech/txwrapper/issues/172)) ([51e5d77](https://github.com/paritytech/txwrapper/commit/51e5d775e85ee7a13830725d5b404d24dad2e48d)) ### [3.1.4](https://github.com/paritytech/txwrapper/compare/v3.1.2...v3.1.4) (2020-06-08) ### Bug Fixes * **deps:** Bump @polkadot/api to v1.17.2 ([#163](https://github.com/paritytech/txwrapper/issues/163)) ([08a0a54](https://github.com/paritytech/txwrapper/commit/08a0a54d61598af2b784b839534b6f36ebafad13)) * **deps:** Bump @polkadot/api to v1.18.1 ([#168](https://github.com/paritytech/txwrapper/issues/168)) ([291ab52](https://github.com/paritytech/txwrapper/commit/291ab52f470e1fad861890ee6364a620f0f8188a)) ### [3.1.3](https://github.com/paritytech/txwrapper/compare/v3.1.2...v3.1.3) (2020-06-06) ### Bug Fixes * **deps:** Bump @polkadot/api to v1.17.2 ([#163](https://github.com/paritytech/txwrapper/issues/163)) ([08a0a54](https://github.com/paritytech/txwrapper/commit/08a0a54d61598af2b784b839534b6f36ebafad13)) ### [3.1.2](https://github.com/paritytech/txwrapper/compare/v3.1.1...v3.1.2) (2020-05-28) ### Bug Fixes * **deps:** Update to @polkadot/api@1.17.0-beta.5 ([#157](https://github.com/paritytech/txwrapper/issues/157)) ([da60015](https://github.com/paritytech/txwrapper/commit/da6001505174f2d6a793a30bf79e8c639b8b9f58)) ### [3.1.1](https://github.com/paritytech/txwrapper/compare/v3.1.0...v3.1.1) (2020-05-26) ### Bug Fixes * **deps:** Update to @polkadot/api@1.16.1 ([#156](https://github.com/paritytech/txwrapper/issues/156)) ([eb1b941](https://github.com/paritytech/txwrapper/commit/eb1b941ee4e87df4107b884f1d6a7c729c312504)) ## [3.1.0](https://github.com/paritytech/txwrapper/compare/v3.0.2...v3.1.0) (2020-05-26) ### Features * Add helper functions for claiming and attesting ([#154](https://github.com/paritytech/txwrapper/issues/154)) ([16eac1a](https://github.com/paritytech/txwrapper/commit/16eac1aefa7733607c0231c27c3cac444896266a)), closes [#155](https://github.com/paritytech/txwrapper/issues/155) ### [3.0.2](https://github.com/paritytech/txwrapper/compare/v3.0.1...v3.0.2) (2020-05-22) ### Features * Add system.remark ([#150](https://github.com/paritytech/txwrapper/issues/150)) ([9d1d225](https://github.com/paritytech/txwrapper/commit/9d1d225610ac468bb27ba2e78aca38987a818419)) ### [3.0.1](https://github.com/paritytech/txwrapper/compare/v3.0.0...v3.0.1) (2020-05-21) ### Bug Fixes * **deps:** Bump @polkadot/api to v1.15.0-beta.8 ([#149](https://github.com/paritytech/txwrapper/issues/149)) ([ad37205](https://github.com/paritytech/txwrapper/commit/ad37205075746798acedfaaba089e17d3eaf4ef6)) ## [3.0.0](https://github.com/paritytech/txwrapper/compare/v2.0.0...v3.0.0) (2020-05-18) ### ⚠ BREAKING CHANGES * `BaseTxInfo` now takes an additional `transactionVersion` field. ### Features * Add transactionVersion to input ([#140](https://github.com/paritytech/txwrapper/issues/140)) ([c4c22f2](https://github.com/paritytech/txwrapper/commit/c4c22f212fd01b93ce432d1a27732ae687e9cd59)) ## [2.0.0](https://github.com/paritytech/txwrapper/compare/v1.3.0...v2.0.0) (2020-05-16) ### ⚠ BREAKING CHANGES * This refactor breaks compatibility with v1, as all functions now require a `{ metadataRpc?, registry }` last argument. #### Rationale In v1, by not passing any last argument, we implicitly used Kusama's most recent TypeRegistry. This was a handy shortcut, but might create hard-to-debug issues down the road (e.g. using another chain, or using Kusama with an incompatible spec version). In v2, we never default to Kusama anymore, and always require the user passing the registry (and sometimes the metadata too, if needed, see docs for details). Example 1: ```diff + // Get Kusama's registry at `specVersion` + const registry = getRegistry('Kusama', 'kusama', specVersion); const unsigned = methods.balances.transfer( { dest: '1F...', value: 23 }, { // other info about tx - metadataRpc: metadataRpc, - } + }, { + metadataRpc: metadataRpc, + registry: registry + } ); ``` Example 2: ```diff const unsigned = {...}; const signature = '...'; + // Get Kusama's registry at `specVersion` + const registry = getRegistry('Kusama', 'kusama', unsigned.specVersion); - const signed = createSigned(unsigned, signature); + const signed = createSigned(unsigned, signature, { + metadataRpc: unsigned.metadata, + registry, + }); ``` Here is the full list of breaking changes: - `decode` function taking 3 arguments was deprecated in v1, in favor or 2 arguments. In v2, `decode` takes exactly 2 arguments. - `createSigningPayload`, `createSignedTx`, `methods.*.*` functions all take a mandatory last argument `{ metadataRpc?, registry }`. Note that the `metadata` field has been renamed to `metadataRpc`. Whether a function needs `metadataRpc` is documented for each function. - `deriveAddress`'s 2nd argument `ss58Format` is now mandatory, and does not default to Kusama's prefix anymore. * Pass mandatory registry everywhere ([#141](https://github.com/paritytech/txwrapper/issues/141)) ([bd14e84](https://github.com/paritytech/txwrapper/commit/bd14e848ac0573c121c50a669b8b43213ff6a8ab)) ## [1.3.0](https://github.com/paritytech/txwrapper/compare/v1.2.8...v1.3.0) (2020-05-11) ### Features * Deprecate `validityPeriod`, use `eraPeriod` in blocks instead ([#137](https://github.com/paritytech/txwrapper/issues/137)) ([22f9dfb](https://github.com/paritytech/txwrapper/commit/22f9dfb10d11ceb375e9b6181c53ea1e31ccf3b3)) ### Bug Fixes * **deps:** Update @polkadot/api to v1.13.1 ([#138](https://github.com/paritytech/txwrapper/issues/138)) ([bea59fc](https://github.com/paritytech/txwrapper/commit/bea59fcfc700c4c329408daa4055e1d25559130e)) * Polkadot formatting on address in example ([#131](https://github.com/paritytech/txwrapper/issues/131)) ([1cdf19a](https://github.com/paritytech/txwrapper/commit/1cdf19a60e4ac4329318e174cb0501e4162ea780)) ### [1.2.8](https://github.com/paritytech/txwrapper/compare/v1.2.7...v1.2.8) (2020-05-04) ### Bug Fixes * **deps:** Update to @polkadot/api@v1.13.0-beta.5 ([#130](https://github.com/paritytech/txwrapper/issues/130)) ([5422323](https://github.com/paritytech/txwrapper/commit/5422323a57d3a4fe051b8b50a2217220f39573f5)) ### [1.2.7](https://github.com/paritytech/txwrapper/compare/v1.2.6...v1.2.7) (2020-04-30) ### Bug Fixes * Use ss58 from chain properties ([#125](https://github.com/paritytech/txwrapper/issues/125)) ([34eb150](https://github.com/paritytech/txwrapper/commit/34eb15094273ef60646a53c475712defd9d0539c)) ### [1.2.6](https://github.com/paritytech/txwrapper/compare/v1.2.5...v1.2.6) (2020-04-27) ### Bug Fixes * Add options parameter to all methods ([#122](https://github.com/paritytech/txwrapper/issues/122)) ([ee13cb4](https://github.com/paritytech/txwrapper/commit/ee13cb4116625d38cb1c58df32865e79cf3b3da1)) ### [1.2.5](https://github.com/paritytech/txwrapper/compare/v1.2.4...v1.2.5) (2020-04-21) ### Bug Fixes * **deps:** Update to @polkadot/api@v1.11.1 ([#117](https://github.com/paritytech/txwrapper/issues/117)) ([6b3d715](https://github.com/paritytech/txwrapper/commit/6b3d715fa36640bf0eb100219962892549c2dd2e)) ### [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))