Jaco Greeff
e5952e49d8
Initial DoubleMap support (support v3 Metadata) ( #798 )
...
* DoubleMap support
* Typo
* V3 static
* Swap static to V3
* Cleanup toString
* Remove V0 support, don't get to isReady when load fails
* Re-add v0 (old tests, this is a bit of a mission...)
2019-03-27 12:34:22 +01:00
Jaco Greeff
45e524371e
Add Key to types, bump util for assert typeof fix ( #800 )
...
* Add Key to types, bump util for assert typeof fix
* Export default
* docs
2019-03-27 10:25:07 +01:00
Jaco Greeff
c827bdbbec
Check for multiple api & types instances ( #797 )
2019-03-26 17:13:15 +01:00
Jaco Greeff
26d01aa5a3
Add AccountInfo (as per latest metadata) ( #793 )
...
* Add AccountInfo (as per latest metadata)
* Case-sensitivity
* Bump deps
2019-03-23 20:11:20 +01:00
Xiliang Chen
143cd2f9bb
Metadata v2 ( #792 )
...
* metadata v2
* Try to keep additional data form later metadata version
2019-03-23 12:40:55 +01:00
Jaco Greeff
34ca31c68d
Bump dependencies ( #788 )
...
* Bump dependencies
* Remove signing length check
2019-03-20 15:15:34 +01:00
Jaco Greeff
712c15a329
Update to latest Metadata, e2e tests cleanups (sr25519) ( #783 )
...
* Update to latest Metadata
* Test expansion
* Update tests
* Bump deps
* Package versions
2019-03-18 15:56:07 +01:00
Amaury Martiny
3e43bc5ea9
fix: remove cache from api-derive ( #779 )
...
* Remove cache from api-derive
* Skip e2e
* Update headers to 2019
2019-03-15 12:45:50 +01: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
7f8a7f4286
Update for latest substrate Metadata ( #761 )
2019-03-07 12:06:39 +01:00
Jaco Greeff
5f065b5255
Alias Header number -> blockNumber ( #760 )
2019-03-07 11:08:18 +01:00
Jaco Greeff
cc65bb53d6
Small Enum/EnumType cleanups for consistency ( #759 )
2019-03-06 12:29:34 +01:00
Jaco Greeff
1ed1bfab9a
Cleanup Submittable interfaces for external use ( #755 )
...
* Cleanup Submittable interfaces for external use
* Update Struct.ts
2019-03-03 12:06:43 +01:00
Ian He
1cb847a63a
allow custom Extrinsic implementation ( #739 )
...
* refactor: allow custom Extrinsic implementation
* decorate Extrinsic into SubmittableExtrinsic
* per comments
* avoid cyclical dependency
* try to make codeclimate happy
* code clean up
* fix after rebase master
2019-03-01 13:18:34 +01:00
Jaco Greeff
30577472cf
Export U* names for primitives (including u*) ( #750 )
2019-03-01 09:40:25 +01:00
Jaco Greeff
806a37c50c
Test for Bytes (string input) ( #749 )
2019-03-01 09:39:56 +01:00
Jaco Greeff
1ea1f6f9f5
Add system_networkState RPC (with cleanups) ( #745 )
...
* Ad system_networkState RPC (with cleanups)
* Bump external dependencies
* s/network_state/networkState/ (as per Rust PR comments)
* Bump common (latest)
2019-02-28 13:53:36 +01:00
Jaco Greeff
b313614935
Pull in vuepress foir docs (as opposed to gitbook) ( #742 )
...
* Pull in latest @polkadot/dev, cleanup existing *.html
* Cleanups (old gitbook interfaces)
* Bump, WIP
* Ready for testing
* Update examples
* Include source
* Cleanup links
* Adjust links
* Add typedoc exclusions
* Default classes from class files
* Adjust imports
* Adjust config
* Re-add types split
* Update links to substrate interfaces
* Anchors for metadata
* Adjust links
* Restore HTML (to be deleted on CI)
* Bump deps
* Re-gen yarn.lock
* Remove a in links
* Adjust interfaces
2019-02-26 15:21:39 +01:00
Jaco Greeff
8a946aeaa1
Option create, order of checks ( #733 )
...
* Option create, order of checks
* Alphabetical
2019-02-22 10:50:48 +01:00
Jaco Greeff
f8bd74ee85
Cleanup Option result value handling ( #731 )
2019-02-22 09:58:24 +01:00
Jaco Greeff
d1825c749a
Update metadata to latest (Amount & AssetOf types) ( #726 )
...
* Update metadata to latest (Amount & AssetOf types)
* Allow derive fees to work with fees module
2019-02-20 17:21:20 +01:00
Jaco Greeff
bf1a4a9e08
Ovreride toJSON on {Header, ReferendumInfo}Extended ( #723 )
2019-02-20 07:33:53 +01:00
Jaco Greeff
447ab2fde0
Option construction & ReferendumInfoExtended ( #720 )
...
* Option construction & ReferendumInfoExtended
* Simplify, optional index
2019-02-19 17:46:22 +01:00
Jaco Greeff
f820dfcffa
Inject index properly into ReferendumInfo (with unwrap) ( #718 )
...
* Inject inject properly into ReferendumInfo (with unwrap)
* Use unwrapOr
* Fix type import
2019-02-19 15:20:45 +01:00
Jaco Greeff
f807a93e87
Handle storage with optional modifiers ( #717 )
...
* Handle storage with optional modifiers
* Storage docs indicate Option
* Cleanup Option logic
* Convert Optional derive to use Option
* Bump version, update changelog
* Update CHANGELOG description
* Enum.spec.js -> Enum.spec.ts
* Add isEmpty to primitive types
2019-02-19 13:47:36 +01:00
Jaco Greeff
cf5ca51f7f
Split types into primitive (base) & type (derived) ( #715 )
...
* Split types into primitves & structs
* Bump version (breaking change)
2019-02-19 09:40:14 +01:00
Jaco Greeff
b846152f11
ChainProperties tokenSymbol returns string ( #713 )
...
* ChainProperties tokenSymbol returns string
* Bump deps
* 0.43.14
2019-02-18 12:13:23 +01:00
Jaco Greeff
29c83a09a9
Build docs from latest ( #710 )
2019-02-17 11:03:10 +01:00
Jaco Greeff
5a0d692842
typo, actual sectionName
2019-02-17 08:52:27 +01:00
Jaco Greeff
40a1ec9ffa
Cleanup md rendering, remove empty sections ( #709 )
...
* Cleanup md rendering, remove empty sections
* Remov extra files
2019-02-17 08:40:25 +01:00
Jaco Greeff
9a56f1b5ec
Update metadata to latest ( #708 )
2019-02-17 07:53:28 +01:00
Jaco Greeff
c4ba8ca64d
Add ts-check for examples ( #705 )
...
* Add ts-check for examples
* Typing cleanups, now shows properly
* Bump
* Cleanup checks
* Bump keyring
2019-02-16 12:25:53 +01:00
Jaco Greeff
4735253cbd
Bump deps ( #702 )
...
* Bump deps
* Update keyring
2019-02-15 17:38:49 +01:00
Jaco Greeff
15b22dab1c
Allow indexOf to work with Codec eq ( #699 )
...
* Allow indexOf to work with Codec eq
* Convert to type before check
* Swap compare (in case of empty/invalid values)
2019-02-15 10:52:00 +01:00
Jaco Greeff
ead67ec9d6
Integrate new keyring ( #693 )
...
* Integrate new keyring
* Bump
* Bump version
* ed25519 dusl-support
2019-02-14 23:17:02 +01:00
Jaco Greeff
b88b6646af
Additional export cleanups (root & types) ( #694 )
2019-02-13 21:12:49 +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
b754ea6ffb
Expose #687 on index ( #688 )
2019-02-13 10:02:49 +01:00
Jaco Greeff
0ef15dc547
Add {AccountId, Balance, Moment, Seed}Of ( #687 )
2019-02-12 17:40:40 +01:00
Jaco Greeff
acc318761e
Fix encodedLength for non-ascii strings ( #684 )
2019-02-12 11:28:52 +01:00
Jaco Greeff
dbd37da72f
Allow enum definitions via JSON ( #681 )
...
* Allow enum definitions via JSON
* Return only type of type & value via toString()
* Remove displaced console.error
* Fix toString tests
2019-02-11 15:46:10 +01:00
Jaco Greeff
96624a6d66
Allow boolean decoding for Vote constructor ( #677 )
2019-02-11 12:52:15 +01:00
Jaco Greeff
6d759cd234
Add api.registerTypes ( #670 )
2019-02-09 08:02:47 +02:00
Jaco Greeff
c1a6f0230c
Cater for signature over hash (with version checks) ( #655 )
...
* Cater for signature over hash (with version checks)
* Allow Submittable signAndSend
* isUndefined for nonce check
* .sign with backwards compat
* e2e tests started
* Work around optional callback for Promise
* Commit actual e2e test
* Promise allows for submitExtrinsic
* e2e tests are passing
* Bump version, update CHANGELOG
2019-01-31 18:01:14 +01:00
Jaco Greeff
661cb3c453
Codec types (call definitions in API) ( #650 )
...
* Codec types (call definitions)
* Pass Codec & Subscription generic types
* WIP typing
* Typing seems ok
* Linting
* Queryable storage retuns Hash & U64 for .hash and .size
* Better typing for SubmittableExtrinsic
* Indentation.
* Update with needsCallback
* Update SubmittableExtrinsic.ts
2019-01-31 14:15:59 +01:00
Jaco Greeff
aea223f024
Updates for V1 formatting changes ( #651 )
...
* Updates for V1 formatting changes
* Rework V1 with the new simplified structures
* Parsing parses
* asV0 in-place, rework class splits
* e2e testing completed
* Update args, docs & fallback (shorter, non-collision naming)
* More v0-like event output
2019-01-30 15:41:49 +01:00
Jaco Greeff
82531493da
Option unwrapOr helper ( #652 )
...
* Option unwrapOrNull helper
* unwrapOrNull -> unwrapOr
2019-01-30 15:40:59 +01:00
Jaco Greeff
383573658b
Auto-convert large numbers to hex, smaller as number ( #647 )
...
* Auto-convert large numbers to hex, smaller as number
* Update tests
2019-01-29 17:09:54 +01:00
Jaco Greeff
ebcb7954cc
EnumType toJSON to include type & value ( #645 )
...
* EnumType toJSON to include type & value
* Update metadata for new EnumType formatting
* PlainType & MapType
2019-01-28 18:01:25 +01:00
Jaco Greeff
b34277aeca
Filter events based on order and actual number of events ( #644 )
2019-01-28 16:50:57 +01:00