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
f080d6ed1c
Bump common ( #1563 )
2019-11-11 11:34:08 +01:00
Amaury Martiny
5b5d0a3fb8
Add AuthorityList types ( #1557 )
2019-11-08 14:45:48 +01:00
Jaco Greeff
c077d0f2e7
Bump deps ( #1550 )
...
* Bump deps
* Updates
2019-11-06 22:56:52 +01:00
Xat_MassacrE
fcf89d1501
Fix packages/types/src/codec/utils/encodeTypes.ts encodeSubTypes bug ( #1544 )
2019-11-05 10:27:00 +01:00
Jaco Greeff
287ceb2ded
Contracts with Data return ( #1540 )
...
* Contracts with Data return
* Data toU8a()
2019-11-03 17:15:21 +01:00
Jaco Greeff
8379689eaa
Cleanup staking info ( #1532 )
...
* Cleanup staking info
* Cache calls
* V1, V2 (Aura & Babe) tested & working
* Hopefully pacify docs build
* Second time lucky?
* Third time lucky?
* Fouth time
2019-10-30 14:15:20 +01:00
Jaco Greeff
7555a3a7ce
Use currentEraStartSessionIndex for babe ( #1530 )
...
* Use currentEraStartSessionIndex for babe
* Update WithdrawReasons
2019-10-29 23:25:45 +01:00
Jaco Greeff
f533f51003
Update for latest 2.x ForceAlways ( #1529 )
2019-10-29 22:50:46 +01:00
Jaco Greeff
0b71291cf1
Update latest extrinsic version ( #1511 )
...
* Update latest extrinsic version
* Don't export const with types
2019-10-25 08:51:03 +02:00
Jaco Greeff
a8bfa90b87
Update signing comment ( #1509 )
...
* Update signing comment
* Extrinsic V4 CHANGELOG
2019-10-24 16:20:40 +02:00
Jaco Greeff
3bb719fcfc
Extrinsic v4 ( #1498 )
...
* Extrinsic v4
* Comments
* V4 with MultiSignature
* Bump keyring with signature type indicator
* Return actual Signature type
* Update with MultiSignature enum
* Bump to stable common
* De-dup definitions somewhat
2019-10-24 15:13:03 +02:00
kwingram25
b911bdbd2d
Add dynamic Vec ABI support ( #1499 )
2019-10-20 11:57:19 +02:00
Jaco Greeff
9086592252
Flatten encodeTypes, add missing BTreeMap ( #1495 )
...
* Flatten encodeTypes, add missing BTreeMap
* Fix param encoding
2019-10-19 16:39:53 +02:00
Jaco Greeff
fe3de4379f
Support TransactionPayment.{TransactionBaseFee, TransactionByteFee} ( #1493 )
...
* Support TransactionPayment.{TransactionBaseFee, TransactionByteFee}
* Dedup
* Ordering
2019-10-17 15:22:39 +02:00
Jaco Greeff
4ec6a0f9b8
Align doc headers & links (incl. api interface) ( #1486 )
2019-10-15 12:07:43 +02:00
Jaco Greeff
e056675b3a
Add raw RPC endpoints ( #1485 )
2019-10-15 10:36:15 +02:00
Jaco Greeff
d194a6e4c9
Allow BTreeMap.with('u32', 'Text') (not only classes) ( #1483 )
2019-10-14 13:17:45 +02:00
Jaco Greeff
21ac0ac2fb
Add TypeDefInfo handling for BTreeMap ( #1481 )
...
* Add TypeDefInfo handling for BTreeMap
* Update getTypeClass.ts
* Fixup BTreeMap result (will be active once class support is merged)
* Merge master, update with BTreeMap classes
2019-10-14 11:42:31 +02:00
Paul M Fox and Jaco Greeff
acfd856b25
Basic BTreeMaps codec support ( #1474 )
...
* BTreeMap codec type
* used proper, relative path
* Register class types by default
* reduced cognitive complexity
* Update packages/types/src/codec/BTreeMap.ts
Co-Authored-By: Jaco Greeff <jacogr@gmail.com >
* Update packages/types/src/codec/BTreeMap.ts
Co-Authored-By: Jaco Greeff <jacogr@gmail.com >
* Update packages/types/src/codec/BTreeMap.spec.ts
Co-Authored-By: Jaco Greeff <jacogr@gmail.com >
* added copyright; logic fixes
* added BTreeMap in alphabetical order
* better unit tests
multiple value examples taken from scale codec repo
* lint fix
2019-10-14 11:10:04 +02:00
Jaco Greeff
7143f5e643
Add new parathreads types ( #1477 )
...
* Add new parathreads types
* Fix dangling comma
2019-10-11 16:25:44 +02:00
Jaco Greeff
8a6d23d461
Allow limited (non-sub operation) with Http provider ( #1465 )
...
* Allow limited (non-sub operation) with Http provider
* Throw-away typo
2019-10-10 18:28:15 +02:00
Jaco Greeff
d80cc717e2
[CI Skip] 0.95.0-beta.9
2019-10-10 15:57:14 +00:00
Jaco Greeff
a207348c13
Remove generated types from docs ( #1468 )
2019-10-10 17:35:21 +02:00
Jaco Greeff
e54cee1fad
Cleanup codec .skip tests ( #1467 )
2019-10-10 17:01:31 +02:00
Jaco Greeff
3196e66efb
Remove depcrecated addSignature ( #1466 )
2019-10-10 16:34:20 +02:00
Jaco Greeff
985749ade1
Small typos ( #1464 )
2019-10-10 13:01:05 +02:00
Jaco Greeff
b8d4bc5c6a
Call.injectMetadata (align with Events) ( #1462 )
...
* Call.injectMetadata (align with Events)
* Fix interface builds
* Fix md builds
* Fixup tests with injection
2019-10-10 11:05:01 +02:00
kwingram25
05ec4964fe
Generate types from new contract ABI JSON ( #1320 )
...
* generate types from registry
* cleanup
* merge, rearrange
* lint
* built out
* abi v2 creation
* throw on unions
* linting
* version handling
* split functions
* cleanup
* drop v1 support
* special types
* changes
* requested changes
* formatTYpe
* rv outdated test
* rv union test
* codeclimate
* codeclimate
* codeclimate
* codeclimate
* codeclimate
* review
* cleanup encodeTypes
* fix option sub
* TypeDefInfo.Result
2019-10-08 16:31:48 +02:00
Jaco Greeff
9c09386600
Support Metadata V8 ( #1441 )
...
* Support Metadata V8
* Update V7 references, introduce *Latest (as applicable)
* Add v8 static metadata
* Bump to latest metadata
2019-10-08 11:30:54 +02:00
Jaco Greeff
fb7e067737
Update Enum .eq to be more exhaustive ( #1455 )
...
* Update Enum .eq to be more exhaustive
* Add basic compare test
2019-10-07 15:31:05 +02:00
Jaco Greeff
cf07d4f743
Add Result type ( #1451 )
...
* Add Result class
* Allow createType to operate on Result
* Formatting of Result type in interfaces (incl. use)
* Tests for Result
* Linting & createType seems to work, any final round of gaps?
* Bump metadata containing Result<Null,DispatchError>
* extractTypes handles Result (validation)
* Remove any from creation params
* Ok, give up trying to make `with` sane... it stays enum-like :(
* Move Enum protected decode member to file-level
2019-10-07 13:41:26 +02:00
Jaco Greeff
e17572d845
Latest metadata (srml/utility) ( #1448 )
...
* Latest metadata (srml/utility)
* Move types to utility
* Add sample Kusama test
* Wrap in describeE2E
* Linting
* DispatchResult only in utility srml
* Fixup some tests (types at least)
* api-metadata tests
2019-10-05 09:42:45 +02:00
Jaco Greeff
d0f9114fda
Don't decode and re-encode storage queries, single pass ( #1433 )
...
* Don't decode and re-encode storage queries, single pass
* Remove old SorageData <-> Bytes HACK tests
* Add non-empty check to isPendantic
2019-10-02 12:38:16 +02:00
Amaury Martiny
9807ff70fa
Fix api.derive missing typings ( #1428 )
...
* Use @polkadot/types imports everywhere
* use t for all interfaces
* Add comment
2019-09-30 14:24:01 +02:00
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