Commit Graph
13 Commits
Author SHA1 Message Date
Jaco Greeff 6cfad070aa Properly calculate AccountIndex sets 2018-10-16 10:31:08 +02:00
Jaco Greeff 4ff2b2dc8b Start enumSet lookup at 1 2018-10-16 10:00:30 +02:00
Jaco Greeff 7d303a9fe4 accountId -> accountIndex (#306)
* accountId -> accountIndex

* Lookup id & index in one
2018-10-16 09:26:09 +02:00
Luke Schoen b2c512fc8c fix: Change Readme contents to reflect implementation (#287)
* fix: Change Readme contents to reflect implementation

* Update README.md
2018-10-15 23:15:19 +02:00
Jaco Greeff 1b7640fb9f Create AccountIndex from number (#304) 2018-10-15 22:54:16 +02:00
Jaco Greeff 8f35b763b3 AccountId <-> AccountIndex mappings (#301) 2018-10-15 21:32:41 +02:00
Jaco Greeff be1cc01c02 Cleanup with defaults for fees/balances (#274) 2018-10-12 21:54:01 +02:00
Luke Schoen 267411d778 fix: Fixes #235 TypeDoc updates consistent with renaming (#236)
* fix: Remove docs/api since replaced with docs/rpc-core

* fix: Remove docs/api-provider since replaced with docs/rpc-provider

* fix: Remove docs/api-rx since replaced with docs/rpc-rx

* fix: Remove the guide file that serves no purpose

* fix: Change license from ui-observable to api-observable

* fix: Remove disused mockHttp and mockWs that are duplicates of those in rpc-provider

* fix: Clarifies difference between PropIndex and ProposalIndex from Issue #226

* fix: Update api-observable Readme to refer to rpc-core, previously called api

* misc: Update Readme of rpc-core. See commit message details.

* Update name to be @polkadot/rpc-core instead of @polkadot/api

* Use Yarn instead of NPM for instructions adding dependencies

* Refer to @polkadot/rpc-core as `Rpc`

* Highlight that given block header hash should be a 0x-prefixed hex string with length of 64 (not only length of 10 as shown in the example)

* Showcase more information that you can obtain from the header object (i.e. best block number, parentHash, stateRoot, extrinsicsRoot, and digest)

* Use `header.raw` instead of just `header` to access properties of the header object

* Update the example to console.log the subscription ID

* Add missing semicolon

* fix: Fix name in license header and rename Api to Rpc for rpc-core e2e tests

* fix: Update rpc-provider Readme to use Yarn instead of NPM install

* fix: Fix minor typo

* fix: Rename Api to Rpc for rpc-provider ws

* fix: Refer to rpc-core instead of api in the rpc-rx Readme

* fix: Update rpc-rx files to refer to it as RpcRx instead of RxApi or just Api

* fix: Refer to rpc-core as Rpc instead of Api

* fix: Update type-jsonrpc Readme. Fix typo. Use Yarn not NPM. Refer to TSLint not Flow

* refactor: Move non-type dependency import with non-type dependencies

* docs: Add link to parity-codec repo

* fix: Avoid use of .raw. Fix listen to blocks example

* fix: Add missing error to newHead in listen to blocks example
2018-10-10 20:11:22 +02:00
Jaco Greeff e8c834f5ee Existent empty storage returns null (#231)
* Existent empty storage returns null

* Update index.ts
2018-10-09 17:45:07 +02:00
Jaco Greeff 17aa24c61f Lowercase bool type (#225)
* Lowercase bool

* bool as Bool (keeping to uppercase naming in files)
2018-10-08 14:57:01 +01:00
Jaco Greeff 605f11d768 Update api-observable to UI version (#189)
* Update api-observable to UI version

* Cleanup lint
2018-10-04 14:14:54 +02:00
Jaco Greeff 48e57f9a55 Rename api-codec -> types (#183)
* Rename api-codec -> types

* Cleanups with exports (as found with use)

* Docs to build for /types
2018-10-02 11:30:45 +02:00
Jaco Greeff 782bb8063c Pull in observable API from UI (#175)
* Pull in observable api...

* Progress changing stuff...

* votingBalance

* Update resul types

* Expose toBn on Moment

* Rework... WIP

* ... More type cleanups

* Linting passes

* BN helpers for UInt

* Update api-observable

* Add api-observable package.json

* Allow Struct/Tuple to create from hex string

* Future-proof Length with bitLength (u64/u128 compant encoding PR out)

* Make Compact number encoding shareable

* Split Api into functional sections

* Cleanup types

* Additional per-use comments

* Remove params/primitives from README

* api-format  -> api-codec

* Whitespace.
2018-10-01 11:22:15 +02:00