Jaco Greeff
a9c9fb5769
2021 ( #3015 )
2021-01-03 11:26:46 +01:00
Jaco Greeff
208fbb24d5
Build esm (& add x-rxjs package) ( #2942 )
2020-12-11 18:44:23 +01:00
Jaco Greeff
8e6a1c8fb1
Bump dev (sort imports) ( #2923 )
...
* Bump dev (sort imports)
* Resort
* Adjust ApiInterfaceRx
2020-12-07 16:26:19 +01:00
Jaco Greeff
5a1fd4a1bb
Adjust internal generic imports ( #2838 )
2020-11-11 09:40:35 +01:00
Jaco Greeff
af9437f80a
Adjust create imports ( #2834 )
...
* Adjust create imports
* Restore create root exports
* Adjust unsafe creation
2020-11-10 11:14:38 +01:00
Jaco Greeff
21d0622f84
Bump common ( #2832 )
...
* Bump common
* Update for new common non-default exports
* Don't export createSubmittable
* Adjust exports
* default export adjustments
* Some additional non-default exports
2020-11-09 19:41:29 +01:00
Jaco Greeff
cdd6544e20
SPDX ( #2619 )
2020-09-17 16:31:06 +02:00
Jaco Greeff
47fc4a2b3c
Bump deps w/ eslint ( #2302 )
...
* Bump deps w/ eslint
* Additional cleanups
* Additional
* @polkadot/types done
* Additional
* @polkadot/typegen done
* Additional
* @polkadot/rpc-core done
* Additional
* Additional
* Additional
* docs
* @polkadot/api-derive done
* @polkadot/api done
* @polkadot/api-contracts done
* Update tests
2020-05-24 09:24:45 +02:00
Jaco Greeff
602bb1406b
derive.referendum extended info ( #2086 )
...
* derive.referendum extended info
* update
* util bump
2020-03-24 17:39:37 +01:00
Jaco Greeff
8c011cdc86
Adjust new vote retrieval with entries ( #2080 )
...
* Adjust new vote retrieval with entries
* testing
2020-03-23 11:24:06 +01:00
Jaco Greeff
82c1e3f35a
Cater for new non-linked map validator queries ( #2055 )
...
* Cater for new non-linked map validator queries
* Update staking tests
* stakers -> stashes
2020-03-16 11:13:46 +01:00
Jaco Greeff
4aa5693906
Extend type generation ( #1783 )
...
* Cleanup type overrides
* Generate (with catch-all removal)
* Progress
* Re-gen tx types
* Remove unneeded option check
* Linting updates
* Update CHANGELOG (cleanups as per comments)
2020-01-31 15:34:06 +01:00
Jaco Greeff
b7eeb992cd
Bump deps ( #1699 )
2020-01-06 14:12:49 +01:00
Keith Ingram
3a70594594
Combine elections.info derive ( #1659 )
...
* Combine elections.info derive
* remove tests
2019-12-09 22:05:56 +01:00
Jaco Greeff
8a5a86e8b3
Better performant per-account staking queries ( #1652 )
...
* Better performant per-account staking queries
* Rename retrieval (no confusion)
* staking.info -> staking.account
* Update .info test
2019-12-09 10:14:51 +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
Amaury Martiny
fadb1ffdd8
Make derive types work, and a bit more readable ( #1430 )
...
* Fix typings for derive
* Fix typings
* Spacing
2019-10-01 14:30:53 +02:00
Jaco Greeff
b595428372
Lazily create registry types (also solves resolution order) ( #1291 )
...
* Lazily create registry types (also solves resolution order)
* Typo in comment
* Alphabetical definitions (ordering detected)
* Make fallback & SessionKeys work as expected
* Cleanup registration, user-types takes priority
* typo
* Api constructors only take options
* Cleanup typos
* Don't create classes while validating metadata
* Adjust badges... well, waiting for CI, so...
* typo
2019-08-10 14:24:04 +02:00
kwingram25
09ee77d0bc
Pass online/offline status indicators with staking accounts ( #1265 )
...
* staking online status
* restrict onlineStatus.online to validators
* get onlineStatus for stash/validator only
* tests
* fixes
* Add offline
* Revert stash, change to stashId, linting
* Heartbeat signature
* Make CodeClimate (slightly) happier
* keep compatibility
* change status type
* rv null possible
* cleanup
2019-08-05 16:13:42 +00:00
Jaco Greeff
9ef7ee4a67
Unskip additional tests ( #1185 )
2019-07-25 10:29:15 +02:00
kwingram25
ab74db5126
Elections derive ( #1143 )
...
* elections
* headers
* lint
* lint
* lint
* lint
* fixes
* lint
* voterSets
2019-07-19 21:27:02 +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
Axel Chalon
9abbaab991
Pull parameter_types! from metadata ( #1066 )
...
* @polkadot/{extrinsics,storage} moved to @polkadot/metadata
* Fix previous commit
* Fix previous commit
* Expose parameter types using api.consts
* Grumbles; update v6 static metadata; add UncleEntryItem (fix #1067 )
* Update api.query.* to api.consts.* where changed
* Update tests and stray api.query.staking.sessionsPerEra
* Grumbles
* Grumbles
* Revert updates to api-derive (taken care of by #1068 )
* Grumbles; fix UncleEntryItem
* Rename "@polkadot/metadata" => "@polkadot/api-metadata"
* Skip derive test
* Grumbles
* Grumbles
* Grumbles
* Cleanup merge, ensure metadata is latest
* Move api-metadata to actual api-metadata folder
* README api-metadata description (& folder link)
* Remove stray type-extrinsics package.json
2019-07-09 08:54:28 +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
Stefanie Doll and Amaury Martiny
c01ade86a6
Convert tests to ts and fix existing ( #936 )
...
* Add jest watch option to package.json
* convert promise-alex-spec to ts & add types
* convert ./api tests from JS to TS
* convert ./api tests from JS to TS pt. 2
* More convert tests from JS to TS
* rpc-provider convert tests from js to ts
* rpc-provider tests js => ts
* rpc-provider tests js => ts
* linting issues
* tslint fixes
* 101 => 68 typescript errors
* WIP
* connect() e2e tests
* more fixes
* Fix linting errors of new ERA tests after merge
* test for listeners in connect
* formatting
* getting there...
* re-add skips
* test refactoring & codeclimate fixes
* more fixed tests
* mock.body workaround
* Fixed wrong test description
* ApiPromiseInterface => Api
* ws polyfill / send
* bring back isZero() test
* .then().catch() => .catch()
* Removed leftover body
* Type ProviderInterface => Http
* Fixed polyfill tests
* trailing whitespce
* (mock.body as any)['test_body'] and Balance
* Fix autoconnect in WsProvider
* Fixed part of linting errors in ERA tests
* call unused const unsubscribe
* added ts-ignores for testing private properties/ methods of Provider
* Archive node test
* Fixed linting for ERA tests
* Further changes
* Update packages/rpc-provider/src/ws/polyfill.spec.ts
Co-Authored-By: Amaury Martiny <amaury.martiny@protonmail.com >
* relative paths for imports inside module & reordering of imports pt. 1
* relative paths for imports inside module & reordering of imports pt. 2
* added skip back to e2e transactions
* Fix some more tests in TS (#952 )
* Fix some more tests in ts
* Add more constructor
* More typing in ./api
* .skip
* <SubmittableResult>'s
* .catch() -> return()
* Extrinsics tests
* Left TODO's for extrinsic e2e tests
* Workaround for failing Type Extrinsic tests
2019-05-27 17:08:06 +02:00
Jaco Greeff
acaca67385
derive.{balances, contracts, staking, session} returns Codec ( #953 )
...
* derive.{balances, contracts, staking, session} returns Codec
* Json -> StructAny (as per VectorAny)
* multi returns VectorAny
* VectorAny casts
* Bump common
2019-05-27 12:49:19 +02:00
kwingram25
c2ccf35c5c
Replace votingBalance -> derive.balances.all ( #883 )
...
* Updated with derive.balances.all
* add new keys to votingBalance
* remove multi test
* vestedBalance > 0
2019-05-09 12:38:56 +02:00
Jaco Greeff
6fef86cc78
Adjust support fo US English as per substrate ( #811 )
...
* Rename ExtinsicStatus Finalised -> Finalized
* Finalised heads -> Finalized
2019-03-29 14:12:56 +01:00
Amaury Martiny
3e43bc5ea9
fix: remove cache from api-derive ( #779 )
...
* Remove cache from api-derive
* Skip e2e
* Update headers to 2019
2019-03-15 12:45:50 +01: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
b313614935
Pull in vuepress foir docs (as opposed to gitbook) ( #742 )
...
* Pull in latest @polkadot/dev, cleanup existing *.html
* Cleanups (old gitbook interfaces)
* Bump, WIP
* Ready for testing
* Update examples
* Include source
* Cleanup links
* Adjust links
* Add typedoc exclusions
* Default classes from class files
* Adjust imports
* Adjust config
* Re-add types split
* Update links to substrate interfaces
* Anchors for metadata
* Adjust links
* Restore HTML (to be deleted on CI)
* Bump deps
* Re-gen yarn.lock
* Remove a in links
* Adjust interfaces
2019-02-26 15:21:39 +01:00
Jaco Greeff
b16ccb253a
Inject custom derives ( #711 )
2019-02-18 11:58:50 +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
Amaury Martiny
d07ed8ac38
Refactor api-promise/rx ( #566 )
...
* Use a generic abstract OnCall
* Add OnCall for Promise
* First run at fixing extrinsics
* Fix types
* Make submittable extrinsic work
* Move file
* Make derive work
* Fix types
* Only call metadata once
* Make tests pass
* Put event emitter in apirx
* Fix small bugs
* Fix tests
* Fix bug decorateStorage
* Make tests pass for tx
* Move rpc base to apirx
* Fix lint
* Fix small bugs
* Fix bug with isSubscription
* Fix codeclimate
* Revert
* Add tslint disable line
* Fix lint
* Skip e2e
* Typo
* Lint
* Re-add combinator back
* Add ._rx in Base
* Make extrinsics work
* Update derivex
* Fix bug lint
* Fix circular dep
* Fix bug e2e
* Remove useless check
* Add description comment
* Clean stuff
* Move assert to Base
* Bump version, update CHANGELOG
* Make _rx private
* Private emit
2019-01-16 15:42:59 +01:00
Amaury Martiny
2a2df9a1c3
Add derive functions ( #564 )
...
* Add drr
* Update headers
* Lint
* Copy other functions
* Account indexes
* accountIndexToId
* accountIdAndIndex
* Fees
* votingBalance
* votingBalances
* votingBalancesNominatorsFor
* validatingBalance
* validatingBalances
* bestNumberFinalised
* eraLength
* Add drr
* eraProgress
* votes
* referendumInfos
* referendumVotesFor
* referendums
* Clean code
* Add tests
* Fix lint
* Fix bug eraProgress
* Fix bug fees
* combineLatest without array
* Fix lint
2019-01-10 17:39:25 +01:00
Amaury Martiny
6781bbaa26
Publishreplay(1) for all derive functions ( #557 )
...
* Add drr
* Transform all to publishreplay(1)
* Add comment in test
* Update headers
* Update headers
* Lint
2019-01-09 13:03:05 +01:00
Amaury Martiny
f6c93e48b7
Add derive functions ( #540 )
...
* Make types work
* Add test for derive
* Skip e2e
* Change description
* Add some comments
* Add caching
* Integrate cache
* Add tests
* Add test
* Fix types in tests
* Add e2e tests
* Add comments
* Fix lint
* Bump versions
* Remove useless stuff
* Address grumbles
2019-01-09 10:59:56 +01:00