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
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