- Jan 03, 2020
-
-
Amaury Martiny authored
-
joe petrowski authored
* update api to 0.100.0 * fix import and docs
-
- Jan 02, 2020
-
-
Amaury Martiny authored
-
Amaury Martiny authored
-
Amaury Martiny authored
* Updagte package.json * Update README * Generate docs * Update README.md Co-Authored-By: joe petrowski <[email protected]> * Update README.md Co-Authored-By: joe petrowski <[email protected]> * Update docs/README.md Co-Authored-By: joe petrowski <[email protected]> * Update docs/README.md Co-Authored-By: joe petrowski <[email protected]> Co-authored-by: joe petrowski <[email protected]>
-
Amaury Martiny authored
BREAKING CHANGE: - 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..', ...}); ```
-
- Dec 30, 2019
-
-
joe petrowski authored
-
Amaury Martiny authored
-
joe petrowski authored
* add staking functions first commit * fix nominate test and run linter * use yarn docs * move UnsignedTransaction into ./utils to enable generic tx construction * update docs for UnsignedTransaction move * rename TxInfo and TEST_TX_INFO to specify that they are for balance transfer * move TxInfo into interfaces to reduce duplicate code * make decode somewhat generic * rename util/interfaces to util/types * add encodings to tests
-
- Dec 16, 2019
-
-
Amaury Martiny authored
-
joe petrowski authored
* add ss58Format as param to importPrivateKey * add test for polkadot encoding
-
joe petrowski authored
* add decodeSigningPayload to decode export * linting * linting (again)
-
- Dec 11, 2019
-
-
Amaury Martiny authored
* fix: Put function importPrivateKey in correct file * Fix import
-
Amaury Martiny authored
-
Amaury Martiny authored
-
Amaury Martiny authored
BREAKING CHANGE: `generateKeypair` has been removed.
-
- Dec 06, 2019
-
-
Amaury Martiny authored
-
Amaury Martiny authored
-
Amaury Martiny authored
* feat: Generic `decode` also decodes unsigned * dpcs * Don't expose decode* * decode doesn't decode signingPayload
-
Amaury Martiny authored
-
- Dec 05, 2019
-
-
Amaury Martiny authored
-
Amaury Martiny authored
-
Amaury Martiny authored
-
Amaury Martiny authored
-
- Dec 03, 2019
-
-
Amaury Martiny authored
-
Amaury Martiny authored
-
Amaury Martiny authored
-
Amaury Martiny authored
BREAKING CHANGE: - `decodeTx` has been renamed to `decodeSignedTx` for clarity
-
Amaury Martiny authored
* fix: Fix keepAlive * feat: Add decodeUnsignedTx * Generate docs * Export new functions
-
Amaury Martiny authored
-
- Dec 02, 2019
-
-
Amaury Martiny authored
-
Amaury Martiny authored
* feat: Add balances::transfer_keep_alive * Fix logic
-
Amaury Martiny authored
-
Amaury Martiny authored
-
Amaury Martiny authored
* Use Kusama everywhere * Refactor: No metadataRpc in createSignedTx * Configurable era * Regenerate docs * Fix test
-
Amaury Martiny authored
-
- Nov 29, 2019
-
-
Amaury Martiny authored
-
Amaury Martiny authored
-
Amaury Martiny authored
-
Amaury Martiny authored
-