Jaco Greeff
e7a01f9780
Dump dev (incl. eslint header checks) ( #2142 )
2020-04-07 11:20:07 +02:00
Jaco Greeff
0dc46445bc
Bump dev (incl. lint fixes) ( #2126 )
...
* Bump dev (incl. lint fixes)
* Fix call encoding (stepped into that one)
* Event struct order
* Update with missing tuple type (getTypeDef type)
2020-04-01 22:44:34 +02:00
Jaco Greeff
39c44bb5aa
Split @polkadot/types/known into @polkadot/types-known ( #2120 )
...
* Split @polkadot/types/known into @polkadot/types-known
* Rreadme link
* tsconfig typo
* script aliasses
2020-03-31 13:40:59 +02:00
Jaco Greeff
044efbc6de
Convert jsonrpc & typings to definitions ( #2064 )
...
* Convert jsonrpc & typings to definitions
* Handle empty interface generation (no types)
* Move jsonrpc/create to rpc-core/create
* Create imports
* Remove jsonrpc package, generate rpc-core from defs
* Debug :)
* Generate RPC definitions via interfaces
* Generate md docs
* Remove @polkadot/jsonrpc refs (at least packages)
* No empty types
* Add PAHNTOM "cleanup" gen
* *sigh* regex loop
* Update mock for no jsonrpc
* Add definition export types
* Cleanup linting
* Mocking 1 fix
* Mocking 2 fix
* rpc-core tests updates
* CHANGELOG & docs
* Add jsonrpc (already mapped) to interfaces
* Add aliasses for RPCs
* Fix rpc-core tests
2020-03-19 14:40:54 +01:00
Jaco Greeff
ad2b1abdc9
Move @polakdot/jsonrpc -> packages/jsonrpc ( #1874 )
...
* Move @polakdot/jsonrpc -> packages/jsonrpc
* Update links
2020-02-16 17:41:45 +01:00
Jaco Greeff
519823bc0e
Add resolver for jest ( #1813 )
2020-02-06 15:09:36 +01:00
Amaury Martiny
16e0ea9315
Add a Decorated class, which will be offline decorated Metadata ( #1463 )
...
* Move Metadata to api-metadata
* Make tests in api-metadata pass
* Make tests in api-metadata pass
* Refactor fromMetadata into decorated
* Fix some linting
* Replace headers
* Fix all tests
* Small lint
* Fix tests
* Fix metadata docs scripts
* Fix import ordering
* Add line breaks
* Grumbles
* Fix forgotten import
* rpcMetadata everywhere
* Fixlint
* s/api-metadata/metadata
* Fix latest tests
* Fix lint
* Fix tests
2019-11-12 12:06:18 +01: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
Stefanie Doll
eec4ca7f8d
Add a docker compose file for e2e test environment ( #1100 )
...
* Add a docker compose file for e2e test environment
* Use new `test:all`
* Adjust ports
* small readme fixes
* renamed nodes
* Removed user: ${CURRENT_UID}
* add websocket urls to jest config
2019-07-11 09:58:04 +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
fe16c09f01
refactor: Remove rpc-rx ( #1037 )
...
* Remove rpc-rx
* Make some stuff work
* Fix tests
* Update Base
* Change some stuff
* Remove rpc-rx mentions
* Add correct tests
* Make cache work
* Fix little bugs
* Rename to spec
* Fix lint
* Fix little bugs
* Add comment
* Add correct test
* Update header
* Add test
* Add comments
* Indentation
2019-06-20 11:06:13 +02:00
Jaco Greeff
4cba24c134
Create api-contract (baseline for useful interactions) ( #1007 )
...
* Create api-contract (baseline for useful interactions)
* Add CHANGELOG entry (breaking)
2019-06-14 13:48:53 +02:00
Jaco Greeff
7bdf0fbbe5
Revert "Move contracts into api-contract"
...
This reverts commit af0e8cf07a .
2019-06-14 09:06:57 +02:00
Jaco Greeff
af0e8cf07a
Move contracts into api-contract
2019-06-14 09:05:21 +02: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
Jaco Greeff
6678d7255c
Remove api-observable ( #530 )
...
* 2019
* Remove api-observable
* tuples (SomeLonelyType) -> SomeLonelyType
* Bump to 0.37.0
2019-01-04 16:18:44 +01:00
Luke Schoen
1e9b69c507
fix: Fixes #221 . Exclude tests files in build directory. Only use those in src ( #222 )
...
* fix: Fixes #221 . Exclude tests files in build directory. Only use those in src
* See modulePathIgnorePatterns: https://jestjs.io/docs/en/configuration.html#modulepathignorepatterns-array-string
* fix: Update modulePathIgnorePatterns to cater for renamed packages
* Update modulePathIgnorePatterns to match renaming that occurred in PR #220
* test: Add build directory of api/rx to Jest config of modulePathIgnorePatterns
2018-10-10 23:31:48 +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
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
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
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
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
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
ad968ec794
Import type-* from common repo ( #125 )
...
* Import type-* from common repo
* Update links
* Fix lint links (package index)
2018-08-11 11:14:20 +02:00
Jaco Greeff
92c7c2cc1f
Move Rx API wrapper into api ( #87 )
...
* Move Rx API wrapper into api
* Bump
2018-05-07 12:01:09 +02:00
Jaco Greeff
c980d3e69b
Prefer static checking ( #43 )
2017-12-18 20:08:16 +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
Jaco Greeff
8c6184848f
Convert tests to use jest ( #7 )
2017-11-21 21:59:02 +01:00