Jaco Greeff
85ae6f949b
Allow construction of HashMap ( #1955 )
...
* Allow construction of HashMap
* WIP... add Map to codec, extend BTreeMap & HashMap from it
* Rework various map tests
* registry.createClass
* createClass in tests
2020-02-26 21:30:38 +01:00
Jaco Greeff
db2ae1324f
Update system.networkState types ( #1951 )
2020-02-26 16:19:33 +01:00
Jaco Greeff
8598002801
Swap to registry.createType ( #1947 )
2020-02-26 11:17:11 +01:00
Jaco Greeff
6be6b027cb
More private field -> #field adjustments ( #1945 )
...
* More private field -> #field adjustments
* Work-around for set.add failures
* Remove FIXME, it is done
2020-02-25 16:53:04 +01:00
Jaco Greeff
c3c77ffe43
Add Option.unwrapOrDefault ( #1942 )
...
* Add Option.unwrapOrDefault
* linting
* metadata createType(registry, ...) -> registry.createType(...)
* Linting
* Cleanup tests
2020-02-25 14:15:25 +01:00
Jaco Greeff
a4f56d3d38
Remove deprecated types (up to metadata V5) ( #1939 )
2020-02-25 09:22:38 +01:00
Github Actions
d85d9ca930
[CI Skip] 1.4.0-beta.41
...
skip-checks: true
2020-02-24 19:10:00 +00:00
Jaco Greeff
af643401b8
Remove metadata index hack... and add another one ( #1935 )
...
* Remove metadata index hack
* Parse v9 and V10 upon failure
2020-02-24 20:03:35 +01:00
Jaco Greeff
cbc14cc291
Add new staking types, support derives ( #1828 )
...
* Add new staking types
* StakingLedgerTo213 - StakingLedgerTo223
* StakingLedgerTo223 in polkadot (dev)
* Add derive activeEra
* Map Ponts -> RewardPoints
* StakingLedger override CHANGELOG
* Cleanups
* Apparent CC dupes (don't see it, but cleanup useul)
* Cleanup result formatting for indexes
* Map nextElected -> validators
* Fix StakingLedger to current
* Merge CHANGELOG
* Mention derive staking updates
* Mark derive changes as breaking
2020-02-24 16:52:48 +01:00
Jaco Greeff
51cb64ade7
Cleanup api.createType d.ts, add createType to registry ( #1929 )
...
* Cleanup api.createType d.ts, add createType to registry
* CHANGELOG
2020-02-23 14:57:30 +01:00
Jaco Greeff
869f9b7af9
InterfaceTypes -> keyof InterfaceRegistry ( #1928 )
...
* InterfaceTypes -> keyof InterfaceRegistry
* Renames
2020-02-23 13:43:37 +01:00
Jaco Greeff
553b3df0b2
Augment naming
2020-02-23 12:48:01 +01:00
Jaco Greeff
443706a6e0
Extract full interfaceRegistry ( #1927 )
...
* Extract full interfaceRegistry
* Move augment to top-level in api & types
* Type augment output
* Update with new augmented paths
* Update RPC path
2020-02-23 12:26:10 +01:00
Jaco Greeff
a35da085d6
Augment user type registry ( #1926 )
...
* Augment user type registry
* Augment InterfaceRegistry
* Addition api.createType test
* Import '@polkadot/types/interfaceAugment'
* Skip CC on generated
* Move augmentation to full path imports
* Output to augment-*
2020-02-23 11:48:40 +01:00
Jaco Greeff
196a0891b8
Use isChildClass & isBigInt from @polkadot/util ( #1924 )
...
* Use isChildClass & isBigInt from @polkadot/util
* Allow never
* Bumps
* Common 2.5.1
* Fix overrides
* Remove gh-pages script (in dev)
2020-02-22 17:02:03 +01:00
Jaco Greeff
3bf4c3fac5
Adjust class privates via #, where applicable ( #1921 )
...
* Adjust class priates via #, where applicable
* Remove stray log
* Cleanup rpc-provider
* Small adjustments
* No private access in tests
* Submittable privates
* Use derive for nonce derivation
* Tweak observers
* Alphabetical privates
2020-02-22 11:29:50 +01:00
Jaco Greeff
4540495a44
BigInt support (& some TS typing cleanups) ( #1919 )
...
* Some TS typing cleanups
* docs building again
* yarn.lock rewrite
* tweaks
* BigInt support
* Checktypes with BigInt
* AccountIndex support for BigInt
* Fix ApiPromise signAsync
2020-02-21 17:26:05 +01:00
Jaco Greeff
a3d5ef790c
Move StorageData to interface ( #1918 )
...
* Move StorageDate to interface
* Move extrinsics interfaces
* Update interface imports
2020-02-21 14:13:23 +01:00
Jaco Greeff
2de9317b30
Cleanup CompactAssignments (alignment) ( #1917 )
...
* Cleanup CompactAssignments (alignment)
* Remove CompactAssignment
* Add CompactScore
2020-02-21 13:33:21 +01:00
Jaco Greeff
85ec141b56
Lazy reaping types & updates ( #1914 )
...
* Lazy reaping types & updates
* system.account queries
* AccountInfo -> ContractAccountInfo tests
2020-02-21 12:37:17 +01:00
Jaco Greeff
8672a2e30e
Move length to TypeDef (regularly used), IdentityFields to interface ( #1913 )
...
* Move length to TypeDef (regularly used), IdentityFields to interface
* Update api-contracts tests
2020-02-21 12:12:18 +01:00
Jaco Greeff
3b9f348223
Cleanup IdentityFields (re-use Set) ( #1912 )
...
* Cleanup IdentityFields
* Small cleanups
* Re-add commented IdentityFields
2020-02-21 09:55:18 +01:00
Jaco Greeff
877a339353
Extrinsic toHuman aligns with .method ( #1911 )
2020-02-21 09:33:34 +01:00
Jaco Greeff
1c1bfb295d
VecFixed now take sub, align ext with UInt ( #1909 )
...
* Allow nested definitions for fixed arrays
* Comment nested test
* Don't import U8aFixed + u8
2020-02-20 21:36:12 +01:00
Jaco Greeff
e04e5577ed
Types for offchain phragmen ( #1908 )
2020-02-20 16:27:48 +01:00
Jaco Greeff
543b4846f9
Fixed64 to an interface ( #1906 )
...
* Fixed64 to an interface
* Cleanups, re-use creation
* Fix Int export from codec
* Fix Int export
2020-02-20 13:03:29 +01:00
Jaco Greeff
bec6dba14a
Move primitive/Extrinsic -> extrinsic ( #1905 )
...
* Move primitive/Extrinsic -> extrinsic
* mv primitive/Generic -> generic
* Update registry with BitVec
* ove BitVec back to primitive
* Remove unused import
* Rebuild interfaces
2020-02-20 12:51:06 +01:00
Jaco Greeff
9119e791d1
Add V4 extrinsic test ( #1904 )
...
* Add V4 extinsic test
* Update test with toHuman
* Remove unused import
2020-02-20 10:14:21 +01:00
Jaco Greeff
2b8ce1b3b7
Check AbstractInt bitLength on construction ( #1902 )
...
* Check AbstractInt bitLength on construction
* Language cleanups
2020-02-20 08:00:41 +01:00
Jaco Greeff
427f821430
Fix 11 Jan 2019 issue ( #1900 )
...
* Fix 11 Jan 2019 issue
* Update SignedBlock tests
2020-02-19 19:57:59 +01:00
Jaco Greeff
cc5b5c81c9
Subscribe to runtime updates ( #1896 )
...
* Subscribe to runtime updates
* console.log -> l.log
* Add l.warn to api augment
* Expand logs with added & removed
* Re-do everything when genesis has changed
* augmentObject complexity
* Dedup [string[], strings[]]
* Update CHANGELOG
2020-02-19 15:45:03 +01:00
Axel Chalon
01758229eb
Add manual seal RPCs ( #1894 )
...
* Add manual seal RPCs
* yarn build:interfaces
2020-02-19 06:48:00 +01:00
Jaco Greeff
30f5baa906
ExtrinsicEra & Vote toHuman ( #1893 )
2020-02-18 21:08:18 +01:00
Jaco Greeff
d041c0abb2
Support arbitrary UInt<bitLength> definitions ( #1891 )
...
* Support arbitrar UInt
* CHANGELOG
* Fix generation
* Move UInt
2020-02-18 16:39:18 +01:00
Jaco Greeff
bdd1e4c917
Move H160, H256 & H512 to interfaces ( #1890 )
...
* Move H160, H256 & H512 to interfaces
* Test for Hash -> H256
* Replace IHash & Codec.hash with H256
* [u8; n] extends U8aFixed
* Update formatting.ts
2020-02-18 15:56:50 +01:00
Jaco Greeff
aee09c48b9
Use static with for derived H*, U* & I* primitives ( #1889 )
...
* Usestatic with for derived H*, U* & I* primitives
* Add with override tests
* Fix linting
2020-02-18 14:53:43 +01:00
Jaco Greeff
ad2939cc4f
Rework Unconstructable type ( #1888 )
...
* Rework Unconstructable type
* hasType updates
* Unknown -> Unconstructable (as it was)
* Remove commented test
* class name
* getOrThrow tests
* typo.
* getOrUnknown
2020-02-18 13:35:42 +01:00
Jaco Greeff
a5c8e3c4e1
Convert DigestItem to definition ( #1886 )
...
* Convert DigestItem to definition
* Remove GenericDigestItem export
* Update CHANGELOG.md
2020-02-18 13:20:29 +01:00
Jaco Greeff
b46093e5d3
Add .toHuman on SubmittableResult ( #1885 )
2020-02-18 10:05:48 +01:00
Jaco Greeff
4a1e504ca2
1.3 ( #1883 )
...
* 1.3
* Pair create update
* CHANGELOG update
2020-02-18 09:34:35 +01:00
Jaco Greeff
502e54ce5c
Bump common ( #1879 )
...
* Bump common
* Add documentation to extended call
* TODO for toHuman event
* CHANGELOG
2020-02-17 12:43:03 +01:00
Jaco Greeff
83d780220c
Add toHuman with base formatting ( #1878 )
...
* Add toHuman with base formatting
* Balance formatting
* Externalize Enum decode
2020-02-17 11:43:08 +01:00
Jaco Greeff
2b5be7eaab
Remove unexported staking.infostash derive (duplicated as .query) ( #1877 )
2020-02-17 08:46:59 +01:00
Jaco Greeff
8a152ea4c0
Split generation scripts into @polkadot/typegen ( #1875 )
...
* Split generation scripts into @polkadot/typegen
* Remove moved files
* CC overrides
* interfaces typo
* Cleanup imports
* Some import combinations
* Updates
* Generation updates
* Cleanups, split js wrapper & ts logic
* Rename jiggle 1
* Rename jiggle 2
* Style cleanups
* Expose enry function for scripts
* Typo
* Update script copy & include locations
* CC exclude location
* Minor adjustments
* argv parsing into main
2020-02-17 08:09:59 +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
921e55a82e
Move types/codec/create -> types/create ( #1871 )
...
* Move types/codec/create -> types/create
* Update imports after move
* Cleanups
* Cleanup code circular deps
* Re-add dropped interfaces
* Drop duplicated code
* Fix imports
* Remove whacky comment
2020-02-16 13:51:37 +01:00
Jaco Greeff
6e535b0502
Don't make types depend on api (dev deps) ( #1869 )
...
* Don't make types depend on api (dev deps)
* Naming cleanups
* Remove skipped tests
* Splt types/types into chunks
* Re-add setChainProperties (properties?: ChainProperties): void;
2020-02-16 13:13:56 +01:00
Jaco Greeff
1e975c68ee
Make chain properties available on registry ( #1868 )
...
* Make chain properties available on registry
* Use registry chainSS58 to format address
* CHANGELOG
* CHANGELOG typo
* Fix tests vis setChainProperties
* Cleanup tests via chain property set
* Remove global ss58 format set
2020-02-16 11:09:48 +01:00
Jaco Greeff
c465252e69
Make Metadata <-> hex encoding work ( #1862 )
...
* Make Metadata <-> hex encoding work
* Cleanup encoded, only toString exposes santized
* toHex is actual original toHex, remove override
* Update CHANGELOG
* CHANGELOG for .entries argument typing
* Update CHANGELOG.md
* Manual check type for DoubleMap
* Comment around super.toString usage
* Runtime version
2020-02-16 07:34:45 +01:00
Jeremías Díaz
2c3eee4c67
fix: make entries accept args for double maps ( #1864 )
2020-02-15 17:51:01 +01:00