Jaco Greeff
caff93941b
Method -> Extrinsic circular dep ( #495 )
...
* Method -> Extrinsic circular dep
* Cleanup test formatting
2018-12-19 14:43:30 +01:00
Jaco Greeff
06893d02d8
Add chainProperties call to api-observable ( #472 )
2018-12-14 16:29:16 +01:00
Amaury Martiny
1d1832111b
Tuple extends Array ( #432 )
...
* Tuple extend array
* Fix all tests
* Add tests on Tupel
* Remove getAtIndex for tuples
* Add noInheritDoc
* Update comments
* Update docs
2018-12-03 15:54:52 +01:00
Jaco Greeff
9092250acc
Move types.d.ts -> types.ts ( #421 )
...
* Move types.d.ts -> types.ts
* Bump common deps
2018-11-29 12:13:28 +01:00
Jaco Greeff
4497be6f19
Cleanup api-observable Vector FIXMEs ( #410 )
...
* Cleanup api-observable Vector FIXMEs
* Simplify rawStorage
* Fix linting
* Bump deps
2018-11-22 14:44:11 +01:00
Jaco Greeff
d0ff8937a4
Use compact* from util for encoding ( #409 )
...
* Use compact* from util for encoding
* Remove @polkadot/extrinsics from types imports
* Cleanup manual length concat
* Add missing @polkadot/types dependencies
2018-11-21 17:21:44 +01:00
Jaco Greeff
4805f9cb36
Update LICENSE and README ( #408 )
...
* Update LICENSE and README
* Bump
2018-11-21 13:37:27 +01:00
Amaury Martiny
d097a7a32d
UInt extends BN ( #396 )
...
* Fix Uint and Moment and Compact
* Fix address and account index
* Remove .toBN
* Add comment
* Fix lint
* _raw to raw
* bitLength as method in U8aFixed
2018-11-14 12:35:06 +01:00
Jaco Greeff
de284fb2f9
(hopefully) fix d.ts generation with explicit imports ( #394 )
2018-11-13 11:28:06 +01:00
Jaco Greeff
d5bca161b5
Allow index calc as fallback ( #391 )
2018-11-10 11:56:43 +01:00
Jaco Greeff
4b3b6944ae
democracy.voteOf with Tuple input ( #390 )
2018-11-09 17:44:10 +01:00
Jaco Greeff
e597f1b21f
Allow rawStorage queries via Uint8Array keys ( #378 )
...
* Allow rawStorage queries via Uint8Array keys
* Data fallback
2018-11-07 13:39:12 +01:00
Jaco Greeff
1e250c6523
Add api-observable systemEvents ( #367 )
2018-10-31 14:59:27 +01:00
Jaco Greeff
4997d8fb06
Event definitions ( #350 )
...
* Event definitions
* Compact things a bit
* Cleanup AccountIndex decoding, align Address
* Remove stand-alone MethodIndex (declutter)
* Inject metadata into Event from api
* Update API TODOs to reflect current state
* Update & expand comments
* EventData only takes Uint8Array inputs (via EventRecord)
* Remove duplicated toHex
* Add FIXME with link to base issue
2018-10-26 14:24:38 +02:00
Amaury Martiny
f2287f38c5
class Struct extends Map ( #321 )
...
* Rename to getAtIndex
* Add codec interface
* Fix stuff
* Fix struct
* Allow ts
* Add useful types
* Fix related types
* Fix test
* Small fix
* Use this.get everywhere
* Fix import
* Typos
* Fix ts ignore
* Add more tests
* Update polkadot dev
* Don't change jest config
* Fix eol
2018-10-19 14:49:09 +02:00
Jaco Greeff
ec7b96b929
Array defaults for null | undefined ( #319 )
...
* Array defaults for null | undefined
* Remove unused inputs
2018-10-18 17:31:32 +02:00
Jaco Greeff
389174b8cc
Retrieve balances from AccountIndex ( #317 )
...
* Retrieve balances from AccountIndex
* Merge master
2018-10-18 13:45:39 +02:00
Jaco Greeff
55ac4626d5
Cleanup imports from @polkadot/util ( #315 )
...
* Cleanup imports from @polkadot/util
* Example imports
* Alphabetic imports
2018-10-18 13:30:04 +02:00
Jaco Greeff
290123b85f
Cleanup util-crypto & keyring imports ( #314 )
...
* Cleanup util-crypto & keyring imports
* Adjust util imports for types
* Bump deps
2018-10-18 11:06:02 +02:00
Amaury Martiny
94a202f33e
Rename Struct.get to .getAtIndex ( #310 )
...
* Rename to getAtIndex
* Fix lint
2018-10-17 12:29:53 +02:00
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
Jaco Greeff
f31c35e48e
Return array from enumset ( #305 )
2018-10-15 23:48:00 +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
Jaco Greeff
6056fbcd10
submitAndWatchExtrinsic in api-observable ( #267 )
...
* submitAndWatchExtrinsic in api-observable
* Alphabetical ordering
2018-10-12 17:41:31 +02:00
Jaco Greeff
78101e1292
Update subscription naming handling ( #266 )
2018-10-12 15:39:00 +02:00
Luke Schoen
3c8c4b0baf
refactor: Fixes #239 . Rename from RxRpc to RpcRx in rpc-rx types ( #240 )
2018-10-11 07:37:30 +02:00
Jaco Greeff
7180f8958e
@polkadot/api/rx ( #233 )
...
* api-rx (new)
* Update SubmittableExtrinsic.ts
* Update types.d.ts
* Update index.ts
* Retrieve genesisHash
* extrinsics -> tx, state -> st
* Update index.ts
* Type cleanup
* Update index.ts
* Update index.ts
* Update index.ts
* Sign returns SubmittableExtrinsic
* Example cleanup
* Move to api-rx package
* Add connected/disconnected events
* Expand storage creation
* isReady/isConnected
* Add static create
* Cleanup docs
* Cleanups
* ReplaySubjects
* Basic tests
* Add runtimeVersion
* Test for version, meta & hash
* Package location
* Expand README
* 2 ways of init
* whenReady -> isReady
* api-rx -> api/rx
* Namings
2018-10-10 20:18:48 +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
4344f33de8
First stage renames, rpc-{core,provider,rx} ( #220 )
...
* Docs renames (& removal for re-gen)
* Rename api, api-provider & api-rx
* Apoi -> Rpc, RxApi -> RpcRx (classes)
* Add .nodoc
* Bump version
* Link updates (summary)
* Cleanup deleted (master version)
* Deleted re-instated
* More... ;)
* Types...
* Revert .nodoc
2018-10-10 10:01:34 +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
200253829b
Vector -> Array for query results ( #229 )
...
* Map Vector -> Array for queries
* FIXME
2018-10-09 14:08:43 +02:00
Jaco Greeff
e96ed94f4b
injectExtrinsics into Method (use for decoding) ( #227 )
...
* injectExtrinsics into Method (use for decoding)
* Comment typos
2018-10-09 10:12:49 +01: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
82dbc93f79
Mortal -> Extrinsic, expand for decoding start ( #212 )
...
* Mortal -> Extrinsic, expand for decoding start
* Method, Section -> Rpc{Method, Section}
* Only expose callIndex
* CallIndex -> MethodIndex in spec
2018-10-05 12:29:06 +02: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
81348c60de
Small fixes in operation ( #200 )
...
* Small fixes in operation
* Move length encoding to Extrinsic
2018-10-04 12:15:01 +02:00
Jaco Greeff
02aba14e7e
Expose whenReady and extrinsics/storage ( #199 )
...
* Expose whenReady and extrinsics/storage
* Load genesisHash, expose
* Fix import
* whenReady -> Observable<boolean>
* Check isConnected before making call
* Fix import order
2018-10-04 11:16:45 +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
2f60ba0e1c
Add method name & prefix to StorageFunction ( #182 )
...
* Add methods & prefix to StorageFunction
* Match method/section to exposed names
* Export method/section on extrinsic & jsonrpc
* PR comment prefix -> section
2018-10-02 11:10:17 +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