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
Jaco Greeff
3196e66efb
Remove depcrecated addSignature ( #1466 )
2019-10-10 16:34:20 +02:00
Jaco Greeff
985749ade1
Small typos ( #1464 )
2019-10-10 13:01:05 +02:00
Jaco Greeff
b8d4bc5c6a
Call.injectMetadata (align with Events) ( #1462 )
...
* Call.injectMetadata (align with Events)
* Fix interface builds
* Fix md builds
* Fixup tests with injection
2019-10-10 11:05:01 +02:00
kwingram25
05ec4964fe
Generate types from new contract ABI JSON ( #1320 )
...
* generate types from registry
* cleanup
* merge, rearrange
* lint
* built out
* abi v2 creation
* throw on unions
* linting
* version handling
* split functions
* cleanup
* drop v1 support
* special types
* changes
* requested changes
* formatTYpe
* rv outdated test
* rv union test
* codeclimate
* codeclimate
* codeclimate
* codeclimate
* codeclimate
* review
* cleanup encodeTypes
* fix option sub
* TypeDefInfo.Result
2019-10-08 16:31:48 +02:00
Jaco Greeff
9c09386600
Support Metadata V8 ( #1441 )
...
* Support Metadata V8
* Update V7 references, introduce *Latest (as applicable)
* Add v8 static metadata
* Bump to latest metadata
2019-10-08 11:30:54 +02:00
Jaco Greeff
fb7e067737
Update Enum .eq to be more exhaustive ( #1455 )
...
* Update Enum .eq to be more exhaustive
* Add basic compare test
2019-10-07 15:31:05 +02:00
Jaco Greeff
cf07d4f743
Add Result type ( #1451 )
...
* Add Result class
* Allow createType to operate on Result
* Formatting of Result type in interfaces (incl. use)
* Tests for Result
* Linting & createType seems to work, any final round of gaps?
* Bump metadata containing Result<Null,DispatchError>
* extractTypes handles Result (validation)
* Remove any from creation params
* Ok, give up trying to make `with` sane... it stays enum-like :(
* Move Enum protected decode member to file-level
2019-10-07 13:41:26 +02:00
Jaco Greeff
e17572d845
Latest metadata (srml/utility) ( #1448 )
...
* Latest metadata (srml/utility)
* Move types to utility
* Add sample Kusama test
* Wrap in describeE2E
* Linting
* DispatchResult only in utility srml
* Fixup some tests (types at least)
* api-metadata tests
2019-10-05 09:42:45 +02:00