Jaco
8394c71cfa
Bump dev deps ( #5647 )
...
* Bump dev deps
* Adjust
* Actual bump, fix tsconfig for typegen
2023-05-18 08:42:41 +03:00
Jaco
cd98ac65f3
Add tsconfig.build.json ( #4440 )
2022-01-11 08:51:54 +02:00
Jaco
11f8cb6cfa
Align types-augment with api-augment ( #4390 )
...
* Align types-augment with api-augment
* Adjust CHANGELOG
* Dependencies
* Definitions
* Adjust dependencies
2021-12-24 15:22:15 +02:00
Jaco
acfb193270
Provide polkadot/kusama augmentation ( #4388 )
...
* Provide polkadot/kusama augmentation
* Generate all
* Dev dump
* Build kusama/polkadot with no augmentation overlaps
* CHANGELOG
2021-12-24 14:01:05 +02:00
Jaco
46fdc22201
Split registry & lookup augmentation ( #4376 )
...
* Split registry & lookup augmentation
* Fix package path
* Adjust CC paths, fix detectPackage
* Adjust rollup config
* Adjust rollup in-process packages
* Re-adjust rollup (OCD...)
2021-12-21 19:02:38 +02:00
Jaco
67ee8b08d9
Ensure *.d.ts files are generated in outputs ( #4362 )
...
* Ensure *.d.ts files are generated in outputs
* Adjust
* Additional dep
* Update
* Update refs
2021-12-20 10:00:10 +02:00
Jaco
3d4511607f
API optional augmentation ( #4355 )
...
* API optional augmentation
* Rebuild
* Rebuild
* Cleanups
* Adjust, no multi-imports
* Adjust
* Adjust
* Dedupe
* Augmented exports
* It builds via references (no circulars)
* Don't output *.manual.{js,cjs}
2021-12-19 21:30:34 +02:00
Jaco
1c78464e23
Split *.spec.ts into own reference ( #4353 )
2021-12-19 11:33:39 +02:00
Jaco
fcee83d803
Split into types-augment ( #4350 )
...
* Aplit into types-augment
* Adjust
* Adjust, fix typegen run
* Adjust
* Rebuild
* Adjust
* Adjust
* CC
2021-12-18 17:31:18 +02:00
Jaco
6d1b9cbfb2
Split rpc augmentation ( #4349 )
...
* Split rpc augmentation
* CC
* Split augmentation trigger
* Exports
2021-12-18 13:15:15 +02:00
Jaco
664e9e8f26
References for api augmentation ( #4346 )
...
* References for api augmentation
* Adjust
* Progress... let's see where it leads
* It compiles...
* Adjust
* CC ignore
2021-12-17 12:26:26 +02:00
Jaco
f11feb4363
Move test files to correct packages ( #4345 )
...
* Move test files to correct packages
* Adjust
2021-12-17 09:45:46 +02:00
Jaco
f02d3af3d2
Split @polkadot/types-create ( #4330 )
...
* Split @polkadot/types-create
* Remove floating Type class
* Adjust
* Adjust detectPackage
* Fix types-known exports
2021-12-15 16:05:13 +02:00
Jaco
7982c416e7
Split codec into @polkadot/types-codec ( #4329 )
...
* Split codec into @polkadot/types-codec
* Additional (test cleanups next)
* Fix tests
* Imports from '@polkadot/types-codec
* All remaining codec imports (only exports left)
* Bytes -> types-codec
* Cleanups
* Bool, BitVec, Text movements
* sanitize move
* Adjust (first build fixes)
* Adjust
* Additional
* Adjust
* Adjustments
* linting
* Adjust, not working atm
* Move {U,I}{8,16,32...} to types-codec
* createTypeUnsafe
* Fix type-only exports
* Folder exports
* Split Lookup/Create on registry interfaces
* Clanup LookupRegistry & CreateRegistry
* Combine CreateRegistry into LookupRegistry
2021-12-15 14:04:15 +02:00
Jaco
736fd536f9
Use tsconfig references ( #4328 )
...
* Use tsconfig references
* Move types-known (temp until lower-level split)
* Sources
* Adjust
* tesconfig.eslint.json
* Bumps
* AdjustAdjust
* Linting passing... a start...
* Adjust
* Merge derive
* Merge
* api-contract-support
* It builds?
* compare locations
2021-12-14 12:04:50 +02:00
Jaco
ddd2f2dfe5
Add tsconfig.base ( #4325 )
2021-12-13 08:13:54 +02:00
Jaco
1cc9756d0e
Dedupe collectives ( #4302 )
...
* Dedupe collectives
* Members
* Type imports (unused)
* Work-around for TS type imports
* tsconfig
* Adjust with only local imports
2021-12-08 18:50:18 +02:00
Jaco
f603100b8b
Add @polkadot/types-support ( #3842 )
...
* Add @polkadot/types-support
* jest config fix
* typegen lookups
* Build fixes
* Explicit kusama naming
* testMeta for v14 (local)
* CI test failure
* CI test failure v14
* Update with corrected data after test
* types-support json imports
2021-08-04 10:39:21 +02:00
Jaco
92a1f603d9
Move metadata into types (circular deps hell) ( #3743 )
...
* Move metadata into types (circular deps hells)
* Adjust
* Additional
* Additional
* Last round?
* Adjust imports
* Adjust
* packages
* Bump common
2021-07-07 14:00:30 +02:00
Jaco Greeff
ec8c0d3e8b
Move x-rxjs into common ( #3078 )
...
* Moe x-rxjs into common
* yarn
* jest config
* Pull in new pubslished x-rxjs
2021-01-19 22:08:03 +01:00
Jaco Greeff
1d3dfc77a3
Use package-info (name/version only) for detectPackage ( #2955 )
...
* Use package-info (name/version only) for detectPackage
* Fixed @polkadot/dev?
2020-12-15 14:52:27 +01:00
Jaco Greeff
208fbb24d5
Build esm (& add x-rxjs package) ( #2942 )
2020-12-11 18:44:23 +01:00
Jaco Greeff
79e99fd6e3
Dev bump ( #2839 )
...
* Adjust internal generic imports
* Update dev
* Adjust primitive imports
* Class exports has uppercase variant
* common
* to* chenges
* Adjust EventData for registry creation
2020-11-11 12:58:35 +01: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
ca76dc170c
Add typegen sample ( #1950 )
...
* Add typegen sample
* Link to example from types getting started
* cc skip
2020-02-26 12:38:19 +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
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
30f62f4024
Exclude build folders ( #1503 )
2019-10-22 15:23:47 +02:00
Jaco Greeff
26c2774992
Bump dev deps ( #1502 )
2019-10-22 11:35:09 +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
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
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
Jaco Greeff
eb143b3fdd
Bump deps ( #345 )
...
* Bump deps
* Mock-socket definition hacks
2018-10-24 17:47:01 +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
Chevdor
0981a30d84
Add documentation and examples ( #145 )
...
* Add documentation
* Justification u8a decoding and json encoding (#146 )
* Decode Justifications
* Json encoding for justifications
* Bump deps
* Allow extrinsic length encoding to operate on u8a[] (#148 )
* Fix config and move generated doc to a subfolder
* Cleanup extrinsic encoding (#150 )
* Cleanup extrinsic encoding
* Removed now-defunct type
* Add uncheckedLength encoding
* Add examples
* Ignore package-lock since we use yarn
* Cleanup examples
* Add gitbook config and some base files for the doc
* Do not make full doc mandatory for now
* Add contributing guide, polish doc and samples
* Update the deps of all samples and add yarn scripts
Fix and regenerate the doc
* Fix Contributing guide
2018-09-15 09:11:56 +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
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