Jaco Greeff
5e0c0ba91a
Align jsonrpc augmentation with others ( #1796 )
2020-02-02 20:16:41 +01:00
Jaco Greeff
6ba28c8ad2
Expand simple enums in type generation ( #1795 )
2020-02-02 19:47:19 +01:00
Jaco Greeff
b3d592357f
Override for Vote type (not a struct, not caught) ( #1794 )
...
* Override for Vote type (not a struct, not caught)
* Generate simple Vote object (first, Struct to be done)
* Comment for hex type (string)
* Expand conviction (like we should on enum)
* Cool, use conviction def for input
* aye is required
* Remove FIXMEs
2020-02-02 19:17:33 +01:00
Jaco Greeff
9d4b0ea56a
Update Substrate with vesting ( #1790 )
...
* Update Substrate with vesting
* Update balances & vesting queries with compat)
* Split base account queries
* Linting, simpler referendum voters
* Fix (some) tests
2020-02-02 08:50:37 +01:00
Jaco Greeff
7221a3637c
Add UInt .isMax() ( #1791 )
...
* Add UInt .isMax()
* Filter lockedBlance by max
2020-02-01 21:20:48 +01:00
Jaco Greeff
3d0fd5a6a8
Warn on unknown extensions (once per registry) ( #1788 )
2020-02-01 18:40:45 +01:00
Jaco Greeff
b24a1ff350
SignedExtension injection into payload ( #1778 )
...
* Make a start ... V11 definitions
* V11 conversion
* Fix ErrorMetadataV11
* Extension point for signed extensions
* Add V11 to mapped
* Expand toLatest comments
* Make a start at signer extension defs
* exports
* Extract extension definitions
* Add extension registration
* Remove old override
* Get definition on extrinsic creation
* Add missing V4 base
* Optional extrinsic
* Pull extrinsic version from metadata (if available)
* asLatest.extrinsic should now be available
* Don't export non-types for Extrinsic
* Setup registry with default extensions
* Async test really runs async
* Trace test failures (V1 orig, V4 now)
* CHANGELOG
* Add extension data to actual signature
* Cleanups
* Return cleanups
* Mark all type deocde static internal
* Apply extensions fully to payload
* Cleanup duplication
* ExtrinsicSignature* via createType
2020-02-01 14:17:17 +01:00
Jaco Greeff
00026a173f
Keep original doc-line formats ( #1787 )
2020-02-01 11:59:47 +01:00
Jaco Greeff
89d029eca3
Expand bool & Enum generation ( #1785 )
...
* Expand bool & Enum generation
* Swap consts to Augmented (align with others)
2020-02-01 11:16:27 +01:00
Jaco Greeff
4f0e573adf
Cleanup to tx generation ( #1784 )
2020-01-31 22:34:24 +01:00
Jaco Greeff
4aa5693906
Extend type generation ( #1783 )
...
* Cleanup type overrides
* Generate (with catch-all removal)
* Progress
* Re-gen tx types
* Remove unneeded option check
* Linting updates
* Update CHANGELOG (cleanups as per comments)
2020-01-31 15:34:06 +01:00
Jaco Greeff
1c327c60d9
Metadata V11 ( #1774 )
...
* Make a start ... V11 definitions
* V11 conversion
* Fix ErrorMetadataV11
* Extension point for signed extensions
* Add V11 to mapped
* Expand toLatest comments
2020-01-30 15:49:37 +01:00
Jaco Greeff
9c913fb482
Cleanup generated doc (only top-level docs) ( #1777 )
...
* Cleanup generated doc (only top-level docs)
* Single-line name
2020-01-30 12:09:16 +01:00
Jaco Greeff
de853d9cc0
Add EVM types ( #1771 )
...
* Add EVM types
* Add findError for metadata
2020-01-29 18:26:06 +01:00
Jaco Greeff
4c328964d5
Allow chain to use user-defined types ( #1769 )
...
* Allow chain to use user-defined types
* --package docs on chain extract
2020-01-29 17:37:19 +01:00
Jaco Greeff
4329c0a411
Add polkadot-types-from-{chain,defs} ( #1766 )
...
* Add polkadot-types-from-{chain,defs}
* Generate scripts working
* User types generation docs
* Rebuild with new comment line
2020-01-29 15:51:23 +01:00
Jaco Greeff
18c302d2cf
Allow author extract from empty ( #1761 )
2020-01-28 19:16:08 +01:00
Jaco Greeff
b2c84eb461
Bump deps ( #1758 )
...
* Bump deps
* api detect
2020-01-28 17:40:57 +01:00
Jaco Greeff
7de647ec0b
Cleanup module-specific type-overrides ( #1756 )
2020-01-28 16:18:40 +01:00
Jaco Greeff
cba34b4b65
Fill signAsync with expanded chain options ( #1753 )
...
* Fill signAsync with expanded chain options
* Use mapTo
* Fill test with defined storage value
* Remove .only
2020-01-28 15:33:44 +01:00
Jaco Greeff
e6018f2f75
Add society-specific Vote type ( #1754 )
...
* Add society-specific Vote type
* Cnvert storage types via toLatest
2020-01-28 09:52:40 +01:00
Jaco Greeff
6e2ad7789e
Expose .entries() for DoubleMaps ( #1750 )
...
* Expose .entries() for DoubleMaps
* DoubleMap vs Map test
* Fix decoration
* Remove prefixed map
* Allow SoubleMap entries() with arguments
* DoubleMap with & without params
* Remove debug log
* Update CHANGELOG
* ... and working... finally.
* Cleanup debug logs
2020-01-27 17:13:53 +01:00
Jaco Greeff
7adad82786
Remove v11 metadata ( #1748 )
...
* Remove v11 metadata
* Linting
2020-01-27 12:37:01 +01:00
Jaco Greeff
854a520517
Mark some function @internal (no doc extraction) ( #1746 )
2020-01-27 09:38:02 +01:00
Jaco Greeff
3db15e73a5
Bump deps ( #1745 )
...
* Bump deps
* Fix test expectation
* Mark doc internal
2020-01-26 10:27:44 +01:00
Jaco Greeff
7ef945d15b
Make invalid V9 metadata parse (won't work, but parses) ( #1743 )
...
* Make invalid V9 metadata parse (won't work, but parses)
* Add invalid to V4 (simpler, no code)
2020-01-23 18:06:25 +01:00
Jaco Greeff
c1c537a3b5
Type aliases on a per-module basis ( #1740 )
...
* Type aliasses on a per-module basis
* Remove test interface
* Update wrapper
* Move known types to types
2020-01-22 15:51:23 +01:00
Jaco Greeff
7ed1857589
Update SlashingSpans ( #1738 )
...
* Update SlashingSpans
* Digest 0toX -> ToX
2020-01-22 10:33:05 +01:00
Jaco Greeff
20ed3bb5fe
Allow passing of signer via sign options ( #1734 )
...
* Allow passing of signer via sign options
* Pass signer via api.sign
2020-01-21 14:45:53 +01:00
Jaco Greeff
204cf6769d
Bump mtadata (latest Substrate) ( #1728 )
2020-01-19 11:20:33 +01:00
Jaco Greeff
7b9a11ac25
Don't map empty tuples to Null ( #1725 )
...
* Don't map empty tuples to Null
* Remove unused var
* Regen with tuple Result
* Generated types lint fixes
2020-01-19 10:17:20 +01:00
Jaco Greeff
dd97e9daee
Add registry error lookup ( #1723 )
2020-01-16 14:46:21 +01:00
Jaco Greeff
72e9474f6f
imOnline Heartbeat struct ( #1721 )
2020-01-15 09:56:58 +01:00
Jaco Greeff
07ca18502b
Society/Recovery types ( #1719 )
...
* Society/Recovery types
* camelCase (linting)
2020-01-14 19:08:40 +01:00
Amaury Martiny
fbbbcd2612
Enum toJSON returns toString for a basic enum ( #1697 )
...
* Update kusama static from 1032 to 1033
* Test 1032 and 1033
* Got exact metadata from kusama
* First pass: enum TOJSON and fix some tests
* Build interfaces
* Fix import
* Use camelCase for enum toJSON
* Build interface
* Fix lint
* Fix tests
* Generate static json
2020-01-13 22:18:51 +01:00
Xiliang Chen
ce5c8f7443
fix AssetOptions def ( #1714 )
2020-01-13 11:55:51 +01:00
Jaco Greeff
3a1f284fa8
Treasury OpenTip ( #1708 )
2020-01-10 13:56:05 +01:00
Jaco Greeff
f77ae4d99f
Add percent type ( #1707 )
2020-01-10 12:02:35 +01:00
Jaco Greeff
1ff029dc11
Update IdentityInfo with twitter field ( #1706 )
...
* Update IdentityInfo with twitter field
* Rebuild
* Update test with twitter
2020-01-10 11:25:10 +01:00
Jaco Greeff
7057cf365b
Add paymentInfo to submittables ( #1582 )
...
* Add paymentInfo to submittables
* Cleanup paymentInfo call
* Use 0x42...42 dummy sigs
* Re-add paymentInfo to submittable
* Add correct signFake interfaces
* CHANGELOG
2020-01-09 14:40:25 +01:00
Github Actions
fa76378702
[CI Skip] 0.100.0-beta.20
...
skip-checks: true
2020-01-08 08:29:06 +00:00
Jaco Greeff
e855da1f13
Make a start at the Polkadot launch types ( #1700 )
...
* Make a start at the Polkadot launch types
* Add missing old DispatchInfo
2020-01-08 09:21:23 +01:00
Jaco Greeff
b7eeb992cd
Bump deps ( #1699 )
2020-01-06 14:12:49 +01:00
Keith Ingram and Amaury Martiny
82828d8e09
Add metadata v10/11, blake2_128concat hasher ( #1691 )
...
* v11, blake2_128concat
* MetadataAll
* Add storage hasher v4 and v10
* Make lint pass
* Add correct interfaces
* Fix lint
* Update metadata definitions
* Update v10 metadata
* Update packages/types/src/interfaces/utility/definitions.ts
* Update v11
* Add HACK
* Skip v9 tests (part of HACK)
* Correct function names
Co-authored-by: Amaury Martiny <amaury.martiny@protonmail.com >
2020-01-02 18:04:42 +01:00
Jaco Greeff
0c98593aee
Update DispatchError as enum ( #1682 )
...
* Update DispatchError as enum
* Add DispatchResult
* Update tests for DispatchResult
* Rebuild
2019-12-19 15:37:36 +01:00
Jaco Greeff
9196ce85a0
Expand identity derive fields (incl. all) ( #1680 )
2019-12-19 11:00:47 +01:00
satellitex
53959d482d
Add BTreeSet<V> Codec ( #1639 )
...
* add BTreeSet Codec
* Add following BTreeMap
* fix linting
* fix linting
* add validate Types and encode Types
* type def info is incremented.
* fix compareSet
2019-12-18 16:22:54 +01:00
Jaco Greeff
c4e553ad80
Add identity names to derive.accounts.info ( #1673 )
2019-12-15 12:16:17 +01:00
Jaco Greeff
382f7d75c8
Data has custom encodedLength
2019-12-15 09:56:30 +01:00
Jaco Greeff
b1a657d68a
Custom encoding for identity Data ( #1672 )
...
* Custom encoding for identity Data
* Custom encoding for IdentityFields
* Allow empty U8a input to Data
* IdentityField tests
2019-12-15 08:43:22 +01:00