Jaco Greeff
32c4aa3bfe
Bump polkadot meta ( #1419 )
2019-09-25 13:29:47 +02:00
Jaco Greeff
8293f4b585
Bumps & 0.93 CHANGELOG ( #1420 )
...
* Bumps & 0.93 CHANGELOG
* Linting
2019-09-25 13:29:07 +02:00
Jaco Greeff
a0b8619093
Author-only Babe compat over CC1 & latest ( #1418 )
2019-09-25 10:26:32 +02:00
Jaco Greeff
692c208b20
Update of Babe Pre Digest from master ( #1416 )
2019-09-24 17:50:08 +02:00
Jaco Greeff
8de45cb09e
Update metadata (Babe updates) ( #1410 )
...
* Update metadata (Babe updates)
* Bump with latest master
* Use genesisSlot as opposed to epochStartSlot (wrongly)
* Calculate session from genesis start
* Re-create after master merge
* Kusama CC1 chain type overrides
2019-09-24 16:47:04 +02:00
Amaury Martiny
00d86011a7
Correctly type api.query.*.* ( #1406 )
...
* v1, very wip
* Refactor file arch
* Clean some code
* Make it work for all methods
* Have correct typings!
* Add similar types
* Fix missing imports
* Move function order
* Put any for now
* Make api.queryMulti work
* Add override check
* Fix typings to make it better
* Uncomment code
* Fix lint
* Fix lint
* Put checkTypes into correct place in file
* Spaces...
* Add multi test
* Use interface instead of type alias
* Add comment
* Fix indentation
* Ignore query.types.ts
2019-09-23 16:46:35 +02:00
James Lefrère
73d7a57d38
Add .eq() usage to docs and fix docs typos ( #1405 )
...
* Use `eq` for example
* Use the base `eq` function rather than `===`, so that comparisons are made in a consistent manner in docs
* Add `eq` example
* Add an example of using the `eq` method to the base docs
* Adjust docs/examples
* Fix a number of typos in the static docs and examples
* Adjust various comments in docs examples such that they are written in a consistent case
* Fix metadata docs spacing
* Adjust the metadata documentation generation such that unnecessary spaces are trimmed
2019-09-19 11:43:47 +02:00
Jaco Greeff
bed3f9f4c5
Add rpc_methods ( #1397 )
...
* Add rpc_methods
* Adjust interface tests
* Add account_nextIndex & contracts_call, filter
* Rework AbstractArray includes with some
* Adjust tests
* Ordering
* Correct definitions (pull in from methods)
* Be agressive on filtering, regardless of isOptional
* async/await in filterRpcMethods
* map Text[] -> string[]
* Correct naming for account_nextIndex
* Remove/don't remove rpc_methods as applicable
* Cleanup method handling errors
2019-09-16 11:40:54 +02:00
Travis CI
5576dacd9a
[CI Skip] 0.93.0-beta.1
2019-09-15 19:01:08 +00:00
Jaco Greeff
5d2caddcaf
Support recursive type registration ( #1396 )
...
* Testcase for recursive types
* hasClass & hasDef
* Drop .only
* Option<Recursive> (simplified test)
* Expand cross-ref tests, plain getOrThrow
2019-09-15 20:48:45 +02:00
Jaco Greeff
ed7bd61230
Sanitize types in createType ( #1395 )
2019-09-15 20:48:16 +02:00
Jaco Greeff
d1105c899f
0.92 ( #1390 )
...
* Metadata for current Substrate master
* 0.92 doc updates
* @polkadot/util 1.4.1
* Update static polkadot metadata
* Version bump
2019-09-12 15:29:48 +02:00
Jaco Greeff
b62b1b248d
Add specVersion to mini extraction ( #1387 )
2019-09-12 11:21:41 +02:00
Jaco Greeff and Thibaut Sardan
55fb391465
Things I wish I knew... ( #1374 )
...
* Make a start
* Intro
* Installation
* Flatten
* Move METHODS_*.md to substrate/*.md
* Basics
* Apply suggestions from code review
Co-Authored-By: Thibaut Sardan <33178835+Tbaut@users.noreply.github.com >
* Substrate links
* Create
* api.consts
* Typo
* Typo, ms -> md
* types.basics (SIP)
* Type basics
* api.consts jumps to api.query
* Start to api.query
* Basic queries
* Point starting to actual overview
* api.rpc
* Derive detour
* Query subs & query multi
* Apply suggestions from code review
Co-Authored-By: Thibaut Sardan <33178835+Tbaut@users.noreply.github.com >
* typo
* Query extras
* Basic transactions
* Misplaced ,
* keyring WIP
* Keyring wrap-up
* Subs SIP
* tx subs more WIP
* tx subs
* Small types cleanups
* Apply suggested changes from @JoshOrndorff
* Clarify naked await
* tx wrapping WIP
* Wrap api.wrap
* TS placeholder
* [WIP] markers for not-started
* Clarifying comments
* Additional clarifications
* types.extend... well, extended...
* Remove *nix
* Warp up TypeScript... it is it (for now)
* Some small text clarifications
* Some cleanups
* Cleanups, typos
* keyring cleanups
* Cleanups
* Wrap
* api.wrap wrapped... hopefully
* typos
* Registration typos
* typescript typos, hope I caught most...
2019-09-11 17:32:34 +02:00
Jaco Greeff
05d697ce3e
0.91 ( #1377 )
...
* Deps & CHANGELOG
* Current master metadata (format only)
* 0.91
2019-09-09 15:43:49 +02:00
Jaco Greeff
a3b0dde2cd
Update metadata, system DispatchError type ( #1367 )
2019-09-04 17:39:22 +02:00
Ian He
630b8318c0
Fix raw payload ( #1365 )
...
* fix inconsistent between toPayload() and toRaw()
* add comments
2019-09-04 08:30:41 +02:00
Ian He
f66b2d00c4
move SignerPayload to @polkadot/types ( #1360 )
...
* move SignerPayload to @polkadot/types
* fix errors
* update changelog
* improve naming and code style
2019-09-04 07:58:15 +02:00
Jaco Greeff
ffe7201fbc
Add explicit payload comment (clarification) ( #1363 )
2019-09-04 07:57:00 +02:00
Jaco Greeff
7b844274fd
User-provided types for chain & spec ( #1361 )
...
* User-provided types for chain & spec
* Remove unused node name
* Remove re-registration warning
2019-09-03 11:39:22 +02:00
Jaco Greeff
bc3d21b66b
Add extraction of calls-only metadata ( #1356 )
...
* Add extraction of calls-only metadata
* Add --ws option to chain info
* Validate types
2019-09-02 14:22:49 +02:00
Jaco Greeff
20b835778d
Add ExtrinsicPayload to registry (as with Extrinsic & Unknown) ( #1357 )
2019-09-02 14:22:15 +02:00
Jaco Greeff
096aa83dd7
Bump metadata ( #1354 )
...
* Bump metadata
* Update for metadata constants
2019-09-02 07:39:12 +02:00
Jaco Greeff
2dd7cc0e69
Typescript-eslint 2 ( #1353 )
...
* Make a start
* More minor cleanups
* Some more cleanups
* Last round?
* Exclude build folders
2019-09-02 07:01:32 +02:00
Jaco Greeff
d905b4fef3
Split Submittable into actual classes ( #1350 )
...
* Split Submittable into actual classes
* *sigh* Fix VSCode's "helpful" imports
* Rename option creation functions
* Extrinsic already has version embedded
* V3
2019-08-29 22:33:57 +02:00
Jaco Greeff
35622a9037
Warning for missing types via console.warn (not console.error) ( #1352 )
2019-08-29 16:54:35 +02:00
Jaco Greeff
417a9ffceb
Bump deps ( #1351 )
2019-08-29 16:21:26 +02:00
Jaco Greeff
a47b2ec1d2
Allow override of Extrinsic V1-V3 ( #1349 )
...
* Allow override of Extrinsic V1-V3
* Options only used once, pass in directly
* Linting, unused type
2019-08-29 14:56:56 +02:00
Jaco Greeff
a0194685b8
Bytes & Extrinsic decoding cleanups ( #1337 )
...
* Bytes & Extrinsic decoding cleanups
* Add CHANGELOG entry for Extrinsic changes
2019-08-29 11:43:25 +02:00
Jaco Greeff
87f195df2f
Pass Extrinsic version, allow ExtrinsicUnknown override ( #1348 )
...
* Pass Extrinsic version, allow ExtrinsicUnknown override
* ExtrinsicUnknown should throw
2019-08-29 10:24:39 +02:00
Jaco Greeff
9b1aa6aece
Bump dev ( #1344 )
2019-08-27 13:20:29 +02:00
Jaco Greeff
9ffb4b8d91
Add SetId from grandpa ( #1343 )
...
* Add SetId from grandpa
* Add latest static
2019-08-26 07:52:23 +02:00
Jaco Greeff
895ed80449
subscribeNewHeads ( #1338 )
...
* subscribeNewHeads
* Update CHANGELOG
* Rebuild interfaces
* Sort interfaces, really expose plural
* Fix mocks
2019-08-24 12:10:42 +02:00
Jaco Greeff
67d6c5058f
Add ss58Format to ChainProperties interface ( #1335 )
...
* Add ss58Format to ChainProperties
* Make ChaineProperties entries Option
2019-08-21 17:48:02 +02:00
Jaco Greeff
2d59e9790e
Struct/Tuple shows types via toRawType, not name ( #1334 )
2019-08-21 17:47:30 +02:00
Jaco Greeff
7bfdd88ef6
Minor API-related readability cleanups ( #1333 )
...
* Minor API-related readability cleanups
* Oops, remove trial protected, revert to private
* Unneeded as Observable<...> casts
* Split state retrieval from signAndSend
* Typo in comment
* Cleanup descriptions
2019-08-21 17:38:49 +02:00
Jaco Greeff
960d3995b5
EdcsaSignature to [u8; 65] (no tuple hacks) ( #1331 )
2019-08-21 14:18:16 +02:00
Jaco Greeff
6d2c2bb8a1
Cleanups & expand tests ( #1330 )
...
* Vote cleanups & tests
* VecFixed with tests & bugfixes
2019-08-21 14:14:46 +02:00
Jaco Greeff
3b71c0f64a
Check Enum index before value on construct ( #1329 )
2019-08-21 09:52:56 +02:00
Jaco Greeff
6fee15b138
Update ValidatorPrefx for 2.x ( #1325 )
2019-08-19 20:05:50 +02:00
Jaco Greeff
a9746b3641
Add specVersion to SignedExtra payload ( #1324 )
...
* Add specVersion to SignedExtra payload
* Update ExtrinsicPayload.ts
* Cleanup linting & tests (code-only)
* Update after e2e testing in apps
* Check and fix tests
* Grrr... case sensitivity
* Use interfaces where available
* Case sensitive fixes
2019-08-19 09:28:52 +02:00
Jaco Greeff
71d4a7e7f2
Decoding cleanups ( #1321 )
...
* Decoding cleanups
* Split extractDef
* Extract struct types to string mapping
2019-08-18 16:42:17 +02:00
Jaco Greeff
c7c76f6edb
Rework uniqTypes without duplication ( #1316 )
...
* Rework uniqTypes without duplication
* Extra info for vX -> v7 conversion
* Add vX to naming
* Rework unwrap return
* Ignore gathering unique for v0
* Fix getUniq for V0 (well, def. throw-away, but anyway...)
* compareMap cleanup
* Cleanup author extraction
* Add modules via Struct.with (Metadata)
* Revert "Add modules via Struct.with (Metadata)"
This reverts commit 0666c3014cf840fb4ab26a5231cdf67dbe977bd7.
* Consistency in injected vs defined classes (Metadata)
* Add isTrue/isFalse to Bool
* Meta PlainType/MapType in registry
* Fix wrong v6 imports
* Extract storage modifier
* Split additional Metadata classes into interfaces
* Minor cleanups in type naming
* Static json renames
* Convert most V0 classes to interfaces
* Additional meta classes to interfaces
* No classes for Metadata V0 & V1 anymore
* Rename json imports
* Base cleanups
* Add polkadot static
2019-08-18 15:01:21 +02:00
Jaco Greeff
35a296037a
Update types for offences ( #1317 )
...
* Update static (doc) metadata
* Offences types (definitions & generated)
* Optional recentlyOffline
2019-08-17 10:45:18 +02:00
Jaco Greeff
f30354ead4
Remove deprecated Metadata getters ( #1315 )
...
* Remove deprecated Metadata getters
* Start metadata with som injected types
* Cleanup V0 somewhat with injected types
* Re-generate interfaces
* Extract some Storage type definitions
* Remove unneeded Calls & Constants files in metadata
2019-08-16 14:51:14 +02:00
Jaco Greeff
8922bbf328
Cater for Babe & Aura combo authors ( #1305 )
...
* Cater for Babe & Aura combo authors
* Re-add BabeWeight (until metadata updated)
* BabeWeight to registry
* Remove abrs definitions
* Bump metadata static
2019-08-16 14:07:23 +02:00
Jaco Greeff
51d589e26b
Readability on Metadata & ExtrinsicSignature ( #1314 )
...
* Readbility on Metadata & ExtrinsicSignature
* Version payload
* Adjust versioning
* De-dup asVx
2019-08-16 11:25:38 +02:00
Jaco Greeff
fbac330e10
Minor readability enhancements ( #1313 )
...
* Minor readability enhancements
* Split unwieldly ApiBase
* Fix import case
* Some movements, init in root
* Simplify overloaded functions
* Some more reworks
* Hoist non-class functions
* Flatten
* Split decorate and init
* Split meta from chain
* getNext cleanup
2019-08-16 00:42:54 +02:00
Jaco Greeff
411d432193
Small readability/typing fixes on metadata ( #1312 )
...
* Small readability/typing fixes on metadata
* Object destructuring
* Alphabetical ordering
2019-08-15 09:59:15 +02:00
Jaco Greeff
9954477de3
Some small complexity/readability improvements ( #1309 )
...
* Some small complexity/readability improvements
* Bump allowed returns to 5
* Revert override (as limiting as it seems)
2019-08-14 20:25:20 +02:00