Jaco Greeff
876c34c532
E2E testing ( #177 )
...
* Move e2e tests to provider
* Rx subscriptions
* Import @polkadot/api-provider, fix package names
* Decrease verbosity, skip all e2e tests
2018-10-01 14:11:43 +02:00
Jaco Greeff
74737b6367
API formatting for inputs & outputs ( #171 )
...
* API formatting for inputs & outputs
* Shorten naming
* getStorage (signle key) operational
* Remove api-format (not used in api anymore)
* Cleanup creation logic
* Cleanup linting
* Cleanup storage creation
* e2e state test
* Add code test
* Add isBare flag to toU8a
* Uppercase... wtill wrong though
* Update metadata json
* We are creating keys properly
* Cleanup tslint
* Type splitting,m handling Tuple & Vector
* StorageChangeSet results in-place
* Update deps
* Allow Tuples to have array constructors
* Test for uncloded vec/tuple
* Update deps
2018-09-28 15:42:23 +02:00
Jaco Greeff
773358195a
Round out metadata types ( #169 )
...
* Fake Origin for compatibility
* Add Gas
* Add Moment
* Cleanups
* NewAccountOutcome
* Permill & Perbill
* PrendingExtrinsics -> PendingExtrinsics
* Extrinsics & PendingExtrinsics
* Alias String -> Text (as found in jsonrpc, expose it)
* MetaDate -> Metadata (compat)
* Add StorageData, StorageKey & ChangeSet
* Cleanup comments
* Comment update
* Comment typo
* Add ParachainId
* Add Tuple type
* Tuple tests
* Clenaup Tuple generics
* Expand comment
* Expose keys/values on struct
* Array-like at -> get
* Cleanup & simplify EnumType
* Use setValue internally to fromU8a
* Add RuntimeVersion
* Expose RuntimeVersion
2018-09-27 12:42:20 +02:00
Jaco Greeff
d9b05cf9f2
Decode runtime metadata ( #162 )
...
* WIP
* Some output, still borken...
* Events decoded correctly
* WIP, metadata decoded
* String cleanups
* Expand with generics
* Add getters
* Start docs...
* Additional docs
* Extra whitespace on Compact
* CodecLength FIXME
* Remove FIXME (impl. takes care)
* Swap in LengthCompact encoding
* Extend docs, play with auto-type for struct
* Trim strings, add Type for type-specific String
* More string-type hackery
* Don't allow Type re-encoding
* Remove struct experiment
* Cleanup Option
* Remove extra type defs from CodecStruct usage
* Expand Storage function with map (and type returns)
* Description around BaseCodec
* Cleanup linting, add Metadata test
* Move to api-codec
* Extract uniq types
* Uniq updates
* Unwrap, ungeneric
2018-09-24 13:51:20 +02:00
Jaco Greeff
35b4f9a095
Api & RxApi now created via new ( #153 )
...
* Api & RxApi now created via new
* Bump version
2018-09-14 17:32:58 +02:00
Jaco Greeff
6bc06ad38f
Add session.noteOffline extrinsic ( #140 )
...
* Add session.noteOffline extrinsic
* Remove extra debug logging
2018-08-22 10:04:22 +02:00
Jaco Greeff
137468d4a5
Fix mock tests (dep upgrade)
2018-08-16 13:25:21 +02:00
Jaco Greeff
bd2a1f54fc
Track subscriptions per method ( #134 )
...
* Track subscriptions per method
* Update subscription tests
* Correct newHead un/subscribe methods
2018-08-15 16:20:45 +02:00
Jaco Greeff
a369c8804a
Add chain_getBlock & author_pendingExtrinsics ( #132 )
...
* Add chain_getBlock & author_pendingExtrinsics
* Remove sample
* TSLint
2018-08-15 15:34:16 +02:00
Jaco Greeff
187c66f600
Add storage subscription API endpoints ( #126 )
...
* Add storage subscriptions
* StorageResult formatting
* Decoding WIP
* Storage subsciptions in place
* Allow null decodes, ref https://github.com/polkadot-js/apps/issues/215
* e2e tests for subscribeStorage
* Cache subscription results, return with changeset
2018-08-11 20:50:57 +02:00
Jaco Greeff
fe4c34defe
Classify Http & Ws providers ( #120 )
...
* Class-ify HttpProvider
* Class-ify WsProvider (tests still WIP)
* Rework tests
* rx-api usage
2018-08-07 16:59:40 +02:00
Jaco Greeff
f5a9c207d0
Add TSLint ( #106 )
...
* Add TSLint
* Update dependencies
* Update dependencies
2018-06-27 12:22:52 +02:00
Jaco Greeff
432f9a73a9
TypeScript conversion ( #101 )
...
* Auto-conversion
* ES6 import/export
* WIP...
* WIP...
* And... we are TS typed, some good, some bad, some better, some worse
* Tests passing
2018-06-23 13:39:31 +02:00
Jaco Greeff
41acc4a5e7
Copyright project authors ( #98 )
...
* Copyright project authors
* Add contributors
2018-06-13 22:27:29 +02:00
Jaco Greeff
462fa6e5c4
Expose WS subscribe/unsubscribe ( #63 )
...
* Expose WS subscribe
* Support unsubscribe
* Align unsubscribe with method
* Basic e2e sub test
* Cleanup parameter positions
* Small update
* Handle non-supplied in output formatter
2018-04-16 13:49:02 +02:00
Jaco Greeff
671314f91d
Expand license header ( #48 )
2018-01-15 21:48:22 +01:00
Jaco Greeff
d80b737b1a
2018 ( #47 )
2018-01-04 08:46:12 +01:00
Jaco Greeff
dfe4a62e70
Update to dev 12 ( #28 )
2017-12-01 20:57:16 +01:00
Jaco Greeff
e8ccc9aa79
Move to lerna repo ( #19 )
...
* Pull api-* packages into lerna repo
* Bootstrap with hoist
* Update jest alias config
* Add api-jsonrpc
* Pull in jsonrpc
* Update badges
* Don't hoist, use workspaces
* .eslintrc to root
* Cleanups, build from root
* Shorthand commands
* Update to @polkadot/dev 0.9.1
* Update description
2017-11-28 18:03:48 +01:00