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
Jaco Greeff
067f17b28b
Enum with single-entry encoding ( #1670 )
...
* Enum with single-entry encoding
* Expand test with breakdown
2019-12-13 11:19:38 +01:00
Jaco Greeff
f026137545
Chace down more phantoms ( #1664 )
2019-12-11 17:35:57 +01:00
Jaco Greeff
d487490ca0
Identity types ( #1658 )
...
* Identity types
* Refine findMeta* error outputs
* Cleanups, don't return crappy info, fail
* Revert callIndex with size alloc
2019-12-09 20:36:52 +01:00
Jaco Greeff
77bf33b4e4
Derive with optional democracy ( #1657 )
...
* Derive with optional democracy
* Cleanup optionals
* Multi for preimage retrievals
* Convert indexes to hex before lookup
2019-12-09 18:17:41 +01:00
Jaco Greeff
0d2896630d
Replace Data/U8a with un-aliassed Raw ( #1656 )
...
* Replace Data with un-aliassed U8a
* Export U8a
* Explicitly add U8a to the registry
* U8a -> Raw
2019-12-09 15:38:07 +01:00
Jaco Greeff
6bf0d5eea9
DoubleMap hashing over full value ( #1650 )
...
* DoubleMap hashing over full value
* Expand Bytes tests
* Expand
* Hashing test with soublemaps
* Small extra test comments
2019-12-09 08:37:47 +01:00
Keith Ingram
b1dff22954
Fix encodeWithParams for only valid types ( #1644 )
...
* fix param display
* space
2019-12-07 23:00:02 +01:00
Jaco Greeff
bf946c20db
Latest metadata ( #1647 )
...
* Latest metadata
* Updte static version (v9)
* Update tests for new storage keys
* Bump deps
* Bump extra
* Case, V8 -> v8
2019-12-07 14:13:20 +01:00
Jaco Greeff
191abe4e08
Cleanup Text from U8a (wrapper class) ( #1642 )
...
* Cleanup Text from U8a (wrapper class)
* U8a test
2019-12-05 12:54:52 +01:00
Jaco Greeff
64a4bb2e17
0.98 ( #1635 )
2019-12-04 12:27:02 +01:00
Amaury Martiny
f78bf9dde1
Remove as unknown ( #1636 )
...
* Remove some as unknowns
* Rename sanitize
* Remove file
2019-12-04 12:19:37 +01:00
Amaury Martiny
c576c689d0
Add correct typings when modifier is optional ( #1632 )
2019-12-03 23:32:31 +01:00
Xiliang Chen
762b16ea13
make ts generate script more reusable ( #1610 )
...
* make ts generate script more reusable
* avoid use global definitions
* fix error
* fix formatting
* seems working
2019-12-03 22:04:41 +01:00
Jaco Greeff
7a60ab81f8
Drop decorated export ( #1628 )
...
* Drop decorated export
* Fixup imports
2019-12-03 14:49:30 +01:00
Jaco Greeff
7e1eb0fab0
Drop circular Linkage deps ( #1627 )
...
* Drop circular Linkage deps
* Cleanup more circular deps
* IU8a interface
2019-12-03 14:05:50 +01:00
Jaco Greeff
906732bcdc
Add 6x to conviction ( #1623 )
...
* Add 6x to conviction
* Add derive.democracy.proposals
* Proposal decoding
* Don't return empty proposals
* Rework referendumInfo
* Update referendumInfo extraction
2019-12-02 10:32:20 +01:00
Jaco Greeff
eade586044
ValidatorPrefs with commission: Perbill ( #1618 )
...
* ValidatorPrefs with commission: Perbill
* Update naming for old interfaces
* Compact commission
2019-11-28 17:24:00 +01:00
Jaco Greeff
4cb8462d50
Cleanup ABI encodeType, fix test compare ( #1616 )
2019-11-28 12:42:49 +01:00
Jaco Greeff
8ed2bda3a8
Add Polkadot AuthorityDiscovery session keys ( #1573 )
...
* Add Polkadot AuthorityDiscovery session keys
* SessionKey5 based on CC3 specVersion
2019-11-27 22:00:52 +01:00
Jaco Greeff
03e9a9676f
Allow struct isBare with only some fields ( #1611 )
...
* Allow struct isBare with only some fields
* Add payload serialization tests
2019-11-27 20:18:10 +01:00
Jaco Greeff
33fd1b1c78
Support Metadata V9 ( #1600 )
...
* Metadata v9 definitions
* Update stay V5 in V9
* WIP...
* Small adjustments
* toV9 looks sane ... may work
* v9 tests passes
* v8 tests pass... will get to overall... not checked
* Cleanup type
* Spread storage
* Missing semi
* Cleanup testUtil
* Cater for prefix map key generation
* Remove DoubleMap<T> wrapper
* Remove DoubleMap<T> wrapper
* WIP result types not yet operational
* Output formatting
* Add missing name prop
* Move v9 -> v10, v9 only as storage changes (next up)
* Support v9 & v10
* Fixup linked maps
2019-11-27 19:24:44 +01:00
Jaco Greeff
35c63a52c8
Add paysFee to DispatchInfo ( #1604 )
...
* Add pasyFee to DispatchInfo
* Bool -> bool
2019-11-25 11:53:22 +01:00
Jaco Greeff
db59fbff25
Acc contracts_getStorage ( #1603 )
2019-11-23 22:29:33 +01:00
Jaco Greeff
7f39c573ce
Add DispatchInfo ( #1601 )
...
* Add DispatchInfo
* Cleanup metadata decoration
* Assert for injection
* Appropriate metadata injection
* Fix tests
2019-11-23 12:15:36 +01:00
Jaco Greeff
8b1a7a8584
Move Metadata to interfaces ( #1598 )
...
* Move Metadata to interfaces
* Align imports
* Suppress errors
* Remove TS overrides, createTypeUnsafe returns Codec
* Add type unwrap
* Fixup doc generation
* Remove V8 references
2019-11-22 13:38:20 +01:00
Jaco Greeff
3b758a0d64
Remove custom toString() from metadata storage ( #1597 )
...
* Convert asType -> asPlain, isPlainType -> isPlain
* Make tests pass
* Move unwrapStorageType to StorageKey
2019-11-22 10:47:21 +01:00
Jaco Greeff and Amaury Martiny
011e24bd49
Pass registry to all codec types ( #1592 )
...
* Pass registry to all codec types
* Pass through registry inside API (where the rubber meets the road)
* Small additions
* Derive w/ registry
* Types are more-or-less covered
* Some test adjustments (guided by linting)
* Rid the world of some ../injector
* Additional cleanups, merge injector into registry
* Cleanup extrinsics (always passing registry)
* Remove injector imports (not all replaced)
* Typ spec cleanups
* Phase 1 - types seem lint-free
* rpc-{core,provider} lint free
* Start working through metadata
* Small metadata additions
* Some e2e tests (out-of-order)
* Down to a handful
* Fixup tests for packages/types/src/codec/*.spec.ts
* packages/types/src/codec passes all tests
* packages/types ok (Convert storage with registry fn)
* progress (sort out injection, dreaded find-before msg)
* Down to 1 lint issue...
* Linting done... along with on-demand import
* Exposed ordering
* Remove global injects
* Cleanup comments
* Add CHANGELOG & UPGRADING
* Apply suggestions from code review
Co-Authored-By: Amaury Martiny <amaury.martiny@protonmail.com >
* Update Metadata description
2019-11-21 16:32:39 +01:00
Keith Ingram
d82bb63acb
Fix vec<u8> issue ( #1591 )
...
* fix vec u8 issue
* lint
2019-11-19 21:41:15 +01:00
Jaco Greeff
b2daf7482f
Types for new slashing ( #1585 )
...
* Types for new slashing
* Unwrap new nominations structures
* Small cleanups
2019-11-19 13:59:27 +01:00
Amaury Martiny
0a27f63423
Make api.const.*.* typed ( #1584 )
...
* Make api.const.*.* typed
* Fix tsc errors
* Remove ConstantCodec
* as any as
* Remove as any
2019-11-18 17:21:54 +01:00
Jaco Greeff
75220eb54f
Add payment queryInfo RPC ( #1580 )
2019-11-18 12:26:09 +01:00
Jaco Greeff
be4b9a4133
Update session keys (with AuthorityDiscovery) ( #1570 )
...
* Update session keys (with AuthorityDiscovery)
* typo
2019-11-14 15:31:22 +01:00
Jaco Greeff
921e329d18
Cleanup decode errors ( #1567 )
...
* Cleanup decode errors
* Expand RPC error message
* Extract RPC createSignature method
* Flatten formatError
* Formatting
* Update test string match
2019-11-13 22:18:07 +01:00
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