Jaco Greeff
b6d1be6ee5
Only memomize via instanceId ( #2572 )
...
* Add memoizee instanceId
* Gotcha.
* linitng
2020-09-02 17:13:38 +02:00
Jaco Greeff
45786b31da
Bump deps ( #2286 )
...
* Bump deps
* Linting cleanups
2020-05-15 13:35:15 +02:00
Jaco Greeff
d9dad3566a
Use asyncScheduler for all derives ( #2043 )
2020-03-13 12:32:42 +01:00
Jaco Greeff
85ae6f949b
Allow construction of HashMap ( #1955 )
...
* Allow construction of HashMap
* WIP... add Map to codec, extend BTreeMap & HashMap from it
* Rework various map tests
* registry.createClass
* createClass in tests
2020-02-26 21:30:38 +01:00
Jaco Greeff
bec6dba14a
Move primitive/Extrinsic -> extrinsic ( #1905 )
...
* Move primitive/Extrinsic -> extrinsic
* mv primitive/Generic -> generic
* Update registry with BitVec
* ove BitVec back to primitive
* Remove unused import
* Rebuild interfaces
2020-02-20 12:51:06 +01:00
Jaco Greeff
2ac3640900
Update AccountIndex derive ( #1820 )
2020-02-07 15:43:21 +01:00
Jaco Greeff
e6e96aa9c9
Make indices module optional ( #1812 )
...
* Make indices optional
* Updtae contracts with optional creation
* Flatten contract fees
2020-02-06 14:09:29 +01:00
Jaco Greeff
b7eeb992cd
Bump deps ( #1699 )
2020-01-06 14:12:49 +01:00
Jaco Greeff and Amaury Martiny
011e24bd49
Pass registry to all codec types ( #1592 )
...
* Pass registry to all codec types
* Pass through registry inside API (where the rubber meets the road)
* Small additions
* Derive w/ registry
* Types are more-or-less covered
* Some test adjustments (guided by linting)
* Rid the world of some ../injector
* Additional cleanups, merge injector into registry
* Cleanup extrinsics (always passing registry)
* Remove injector imports (not all replaced)
* Typ spec cleanups
* Phase 1 - types seem lint-free
* rpc-{core,provider} lint free
* Start working through metadata
* Small metadata additions
* Some e2e tests (out-of-order)
* Down to a handful
* Fixup tests for packages/types/src/codec/*.spec.ts
* packages/types/src/codec passes all tests
* packages/types ok (Convert storage with registry fn)
* progress (sort out injection, dreaded find-before msg)
* Down to 1 lint issue...
* Linting done... along with on-demand import
* Exposed ordering
* Remove global injects
* Cleanup comments
* Add CHANGELOG & UPGRADING
* Apply suggestions from code review
Co-Authored-By: Amaury Martiny <amaury.martiny@protonmail.com >
* Update Metadata description
2019-11-21 16:32:39 +01:00
Jaco Greeff
2875fdf2cf
Wrap all derives in memo (like rpc-core) ( #1564 )
2019-11-11 14:25:07 +01:00
Jaco Greeff
3998b1bcbd
Whack derive memo ( #1546 )
...
* Whack derive memo
* Bump common
2019-11-05 14:36:53 +01:00
Jaco Greeff
2371d6a29c
Remove double-up-drr (memo vs rpc) ( #1541 )
...
* Remove inner memo (no double-up on stringify)
* Validators-specific query
2019-11-03 23:47:55 +01:00
Jaco Greeff
e601ae27a1
Re-add derive memo (def. has an impact) ( #1539 )
2019-11-03 13:28:42 +01:00
Jaco Greeff
506b042f8c
Remove derive memos ( #1538 )
...
* Remove derive memos
* Remove outer memo
* Over-eager replace
2019-11-03 11:38:36 +01:00
Jaco Greeff
7cc961f789
Staking overview derive ( #1537 )
...
* Staking overview derive
* Expand derives
* Extract currentIndex/currentEra
* WIP
* Controllers opt
* Add memo
* Memomize the whole lot
* Doc building fixes
* Doc fixes #2
2019-11-02 23:10:10 +01:00
Jaco Greeff
dc105e6b31
Sub/unsub cleanups ( #1535 )
...
* Sub/unsub cleanups
* drr full idAndIndex
* Memo on nick call
* refCountDelay
* Remove scheduler param, always asap
* Flatten
* Test cleanups
* Make tests pass
* Remove logs
* Drop nick memo
* sourceConnection.unsubscribe
* Small cleanups
2019-11-01 14:17:47 +01:00
Jaco Greeff
fed9e8f7de
Retrieve heartbeats for all validators ( #1527 )
...
* Retrieve heartbeats for all validators
* Tested, confirmed working
2019-10-29 12:21:49 +01:00
Jaco Greeff
02cd1331aa
Move Event, Address, AccountId, AccountIndex to generic ( #1202 )
...
* Move Event, Address, AccountId, AccountIndex to generic
* Move AccountId, AccountIndex, Address & Event to generic
* Move Vote
2019-07-26 16:39:28 +02:00
Jaco Greeff
478f54c703
Convert RPC classes to primitive classes or /srml types ( #1192 )
...
* Convert RPC classes to primitive classes or /srml types
* Lint passes... lokking at tests next.
* Tests pass.
* Types with basic docs (lots of work here)
* Update StorageKey.spec.ts
* Add injector to metadata doc generation
* Fix import
2019-07-26 10:23:37 +02:00
Jaco Greeff
71c5920b1f
eslint rules ( #1099 )
...
* Off to the races - 3760 problems (1794 errors, 1966 warnings)
* Convert Array<T> -> T[] (not all correct, eg. extends)
* () => { -> (): void => {
* get is/as -> public get is/as
* public for getters, constructors & base Codec
* Some cleanups from previous overzealous search & replace
* Under 2k, 1874 problems (649 errors, 1225 warnings)
* ^^^ check that commit for details ;)
* Minor.
* rm config header
* Minor cleanups
* Default to tslint, eslint as option
* Trigger
* Update jsonrpc
* 1494 problems (433 errors, 1061 warnings)
* 1103 problems (135 errors, 968 warnings)
* 899 problems (9 errors, 890 warnings)
* 483 problems (9 errors, 474 warnings) (ignore any... for now)
* 366 problems (9 errors, 357 warnings)
* 336 problems (9 errors, 327 warnings)
* 148 problems (9 errors, 139 warnings)
* 31 problems (8 errors, 23 warnings)
* 0, 0
2019-07-14 12:15:14 +02:00
Amaury Martiny
63846ac367
Remove onCall, use decorateMethod ( #987 )
...
* update signature of doublemap storage function
* add test cases
* update doublemap implementation
* update implementation
* remove duplicate test case
* update test cases
* Add hkt
* Fix derive types
* Make derive work
* Fix some bugs
* Fix some bugs
* More stuff
* Make some more stuff work
* Fix types in derive
* Fix all tests in derive
* Change back ApiType
* Remove vscode
* Fix Submittables
* Fix some errors
* Fix some bugs
* Change some stuff
* Fix merge conflict
* Fix types
* Add console.log
* Add console.log
* Re-add decorateMethod
* Fix tests
* Skip e2e
* Small fixes
* Fix signAndSend
* Fix typings in test
* Fix lint
* Add comments
* One line
* Remove useless
* URI->ApiType
* Indentation
2019-06-14 12:12:53 +02:00
Jaco Greeff
86a8011c65
Move additional types to primitive & rpc ( #916 )
2019-05-16 11:11:32 +02:00
Stefanie Doll
c30d3a80e8
Added derive e2e tests and documentation ( #898 )
...
* export IExtrinsic
* Switch to localhos & enable tests in promise.spec
* Derive.accounts docs (copy from my other branch) + code examples
* Fixed existing accounts tests and added tests for all accounts.derive methods
* e2e tests and docs/ examples for balances.all and balances.fees
* Removed emty lines below jsdoc info
* tests & documentation dor derive.chain
* Addressed comments from former PR https://github.com/polkadot-js/api/pull/869
* Removed unused import
* obseralbe -> observable
* undo keith' commit
* use correct jsdocs syntax
* Re-enable skip
2019-05-15 11:50:28 +02:00
Jaco Greeff
21dab00203
Basic same-type multi queries ( #866 )
...
* Basic same-type multi queries
* Remove extra map, straight to switchMap
2019-05-03 13:54:05 +02:00
Jaco Greeff
34888bd4fb
Remove /index imports (swap to bare) ( #773 )
...
* Remove /index imports (swap to bare)
* Bump common
2019-03-14 09:02:55 +01:00
Jaco Greeff
cf5ca51f7f
Split types into primitive (base) & type (derived) ( #715 )
...
* Split types into primitves & structs
* Bump version (breaking change)
2019-02-19 09:40:14 +01:00
Jaco Greeff
8beac7b5a8
Use startWith for initial index/id values ( #716 )
2019-02-19 08:40:49 +01:00
Jaco Greeff
f95763906e
Add codec exports to types index ( #689 )
...
* Add codec exports to types index
* Use actual index exports (internally)
* Merge {AccountId, Balance, Moment}Of into parent classes
2019-02-13 16:00:59 +01:00
Jaco Greeff
a3e421f665
Allow for balance/indices lookups ( #596 )
...
* Allow for balance/indices lookups
* Latest metadata
* Indices work
* Update json with actual decoded
* Update Type.ts
* Some tests updated
* Update final tests
* Remove .only from derive e2e (really skip it)
2019-01-17 15:11:50 +01:00