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 |
|
Amaury Martiny
|
441148889d
|
CreateType is typed, add createTypeUnsafe just in case (#1199)
* Use unsafe internally
* Add comments
* Remove <> in createType
* Fix lint
* Fix classOf
* Remove createType from Text
* Fix lint
* Fix Fallback type
* Fix fallback in createType
|
2019-07-26 14:00:25 +02:00 |
|
Jaco Greeff
|
2a37b8746d
|
Rename srml to interfaces (#1198)
* Rename srml to interfaces
* newline, package.json
|
2019-07-26 12:08:17 +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
|
39323a8896
|
Convert all type/* (and some primitives) to srml/* (#1189)
* Convert (almost-all) non-primitives (and some primitives) to srml/*
* Move Vote to primitives, remove type folder
* Move Balance :-o
* Fixup tests, override Balance.toRaw()
|
2019-07-25 16:34:47 +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 |
|
Jaco Greeff
|
22bf06e6e0
|
Remove derive {Struct,Vector}Any (new typing magic) (#1019)
* Remove derive {Struct,Vector}Any (new typing magic)
* Import ordering
* Small lint fix
|
2019-06-17 10:41:32 +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
|
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 |
|
Jaco Greeff
|
5445314d95
|
Bump deps (#861)
* Bump deps
* Align with published common
* Fix rxjs to 6.4.0 (false deprecations on 6.5.1)
|
2019-04-29 13:47:55 +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
|
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
|
a69cff1c64
|
Add derive.staking.intentionsBalances (#595)
* Add derive.staking.intentionsBalances
* Skip e2e test
* ts-lint?
* Alignment with new signatures, remove all slices
|
2019-01-17 09:55:08 +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 |
|