Jaco Greeff
956e173323
Metadata bump ( #2451 )
2020-07-27 12:06:28 +02:00
Jaco Greeff
658dda66a4
1.25 ( #2440 )
...
* 1.25
* Bump metadata
2020-07-20 09:25:04 +02:00
Jaco Greeff
877eb11717
Swap releases type to shared enum ( #2388 )
...
* Swap releases type to u8
* Shared enum for releases
* Update metadata for new names
2020-06-23 17:40:15 +02:00
Jaco Greeff
4b55f1be93
Babe Equivocation ( #2374 )
...
* Babe Equivocation
* metadata field rename to GrandpaEquivocationProof
2020-06-23 16:46:26 +02:00
Jaco Greeff
f1b6268784
Bump metadata ( #2376 )
2020-06-22 15:31:27 +02:00
Jaco Greeff
b4306cb60a
Bump metadata ( #2373 )
2020-06-22 10:12:01 +02:00
Jaco Greeff
ad6b8280a2
1.19 ( #2354 )
...
* Bump deps
* 1.19
* Update CHANGELOG.md
* Freshen Substrate metadata
2020-06-16 08:34:19 +02:00
Jaco Greeff
6a281211b4
Bump metadata, allow type alias on events ( #2351 )
...
* Bump metadata, allow type alias on events
* Update packages/api/src/submittable/createClass.ts
* Update packages/metadata/src/Metadata/v11/static-substrate.json
* Fresh, no config changes
2020-06-12 23:15:50 +02:00
Jaco Greeff
21802664b8
Metadata bump ( #2348 )
2020-06-11 08:48:52 +02:00
Jaco Greeff
7ed958fb2d
Metadata bump ( #2322 )
...
* Metadata bump
* yarn.lock
* var requires
2020-06-02 12:39:48 +02:00
Jaco Greeff
6e83e6aaef
Adjust call-only metadata output ( #2321 )
2020-06-02 11:03:34 +02:00
Jaco Greeff
4156eb44ab
Bump metadata ( #2305 )
...
* Bump metadata
* Rewrite yarn.lock
2020-05-25 08:20:45 +02:00
Jaco Greeff
47fc4a2b3c
Bump deps w/ eslint ( #2302 )
...
* Bump deps w/ eslint
* Additional cleanups
* Additional
* @polkadot/types done
* Additional
* @polkadot/typegen done
* Additional
* @polkadot/rpc-core done
* Additional
* Additional
* Additional
* docs
* @polkadot/api-derive done
* @polkadot/api done
* @polkadot/api-contracts done
* Update tests
2020-05-24 09:24:45 +02:00
Jaco Greeff
393f46ba4a
Bump metadata ( #2300 )
2020-05-23 10:54:28 +02:00
455f5ad834
Allow keyPrefix to accept an additional argument for double maps ( #2230 )
...
* Allow keyPrefix to accept an additional argument for double maps
* Make key creators accept an optional parameter for key construction
* Remove .only from a test case
Co-authored-by: Xiliang Chen <xlchen1291@gmail.com >
* Cache prefix key when no arguments are supplied
* Address review comments
* Update packages/metadata/src/Decorated/storage/fromMetadata/createFunction.spec.ts
Co-authored-by: Xiliang Chen <xlchen1291@gmail.com >
Co-authored-by: Jaco Greeff <jacogr@gmail.com >
2020-05-23 10:51:38 +02:00
Jaco Greeff
b0dc7cf451
Bump metadata ( #2297 )
...
* Bump metadata
* Deps
* Regen
* Update sig for new signed extensions
2020-05-21 10:56:56 +02:00
Jaco Greeff
e3abb95111
Bump metadata ( #2276 )
2020-05-13 09:32:26 +02:00
Jaco Greeff
c9921f002f
Cater for Check{Spec, Tx}Version extensions ( #2270 )
...
* Cater for Check{Spec, Tx}Version extensions
* Fix tests
2020-05-12 22:03:20 +02:00
Jaco Greeff
458b7fa7e4
Update with latest Substrate metadata ( #2233 )
2020-05-05 11:33:04 +02:00
Jaco Greeff
2367978f6e
Remove polkadot metadata (not mainatained, outdated) ( #2227 )
2020-05-01 21:01:08 +02:00
Jaco Greeff
e0119c1873
Bump metadata to current Substrate master (incl. types) ( #2210 )
2020-04-26 13:46:36 +02:00
Jaco Greeff
a833dccdaf
All private prefixed with _ ( #2157 )
...
* All private prefixed with _
* Fix test
2020-04-11 22:21:55 +02:00
Jaco Greeff
9184268c3d
Bump metadata ( #2148 )
...
* Bump metadata
* Adjust to non-customized democracy params
2020-04-09 14:46:48 +02:00
Jaco Greeff
69351ceb9e
Cater for new dispatch scheduler ( #2130 )
...
* Cater for new dispatch scheduler
* Updated
* debug logs
* Update types.ts
2020-04-02 20:44:27 +02:00
Jaco Greeff
58de0b8b9c
Rewrite yarn.lock ( #2127 )
2020-04-01 23:49:56 +02:00
Jaco Greeff
0dc46445bc
Bump dev (incl. lint fixes) ( #2126 )
...
* Bump dev (incl. lint fixes)
* Fix call encoding (stepped into that one)
* Event struct order
* Update with missing tuple type (getTypeDef type)
2020-04-01 22:44:34 +02:00
Jaco Greeff
39c44bb5aa
Split @polkadot/types/known into @polkadot/types-known ( #2120 )
...
* Split @polkadot/types/known into @polkadot/types-known
* Rreadme link
* tsconfig typo
* script aliasses
2020-03-31 13:40:59 +02:00
Jaco Greeff
7b8b4e8078
BTreeSet only has single sub ( #2114 )
2020-03-28 21:55:49 +01:00
Jaco Greeff
a4ea4d648a
Handle double-encoded Bytes in fallback/constants ( #2113 )
...
* Handle double-encoded Bytes in fallback/constants
* Fix import, bypass for tests
2020-03-28 20:55:39 +01:00
Jaco Greeff
dfc51ad300
Adjust toCallsOnly typing
2020-03-26 16:25:45 +01:00
Jaco Greeff
a19928fef9
Add additional types for offchain Phragmen ( #2097 )
...
* Add additional types for offchain Phragmen
* Trim down metadata toCallsOnly
2020-03-26 16:07:54 +01:00
Jaco Greeff
cb9831c4f8
Bump metadata ( #2096 )
...
* Bump metadata
* Update staking types
* Enum updates
2020-03-26 15:17:20 +01:00
Jaco Greeff
9d67d711d4
Bump deps, type import on generated ( #2075 )
...
* Bump deps, type import on generated
* type imports in types/types
* Re-export defs
* Split imports/exports
* Additional type import
* Remove import type
* Remove dupes
2020-03-21 09:40:59 +01:00
Jaco Greeff
044efbc6de
Convert jsonrpc & typings to definitions ( #2064 )
...
* Convert jsonrpc & typings to definitions
* Handle empty interface generation (no types)
* Move jsonrpc/create to rpc-core/create
* Create imports
* Remove jsonrpc package, generate rpc-core from defs
* Debug :)
* Generate RPC definitions via interfaces
* Generate md docs
* Remove @polkadot/jsonrpc refs (at least packages)
* No empty types
* Add PAHNTOM "cleanup" gen
* *sigh* regex loop
* Update mock for no jsonrpc
* Add definition export types
* Cleanup linting
* Mocking 1 fix
* Mocking 2 fix
* rpc-core tests updates
* CHANGELOG & docs
* Add jsonrpc (already mapped) to interfaces
* Add aliasses for RPCs
* Fix rpc-core tests
2020-03-19 14:40:54 +01:00
Jaco Greeff
5a7811c80f
Bump metadata ( #2058 )
...
* Bump metadata
* Add missing @types/jest
* Update tests for new metadata
* CHANGELOG for linked map removals
* expand re-added check
2020-03-17 10:37:24 +01:00
Jaco Greeff
4093ef9ffa
Add Identity hasher ( #2044 )
...
* Add Identity hasher
* Expand new V11 storage types
* Cleanups, use actual enum keys
* Sort augmented output (fy-by enhancement)
* Map get
* DEFAULT_FN
2020-03-13 13:39:34 +01:00
Jaco Greeff
30d4d8c3a5
Bump metadata ( #2000 )
...
* Bump metadata
* Fix lint & docs
2020-03-05 19:36:48 +01:00
Jaco Greeff
2b6aa7972d
Update metadata for current Polkadot/Substrate ( #1999 )
...
* Remove old Polkadot metadata (current only, Substrate tests cover)
* Substrate & Polkadot metadata
* VotesTo230
2020-03-05 16:37:27 +01:00
Jaco Greeff
4feed1db5d
Bump metadata (incl. lazy payouts) ( #1995 )
...
* Bump metadata (inl. lazy payouts)
* Fix currentElected via generic
* Update tests for latest metadata
2020-03-03 16:13:28 +01:00
Jaco Greeff
586c90208c
Add typeAlias to API construction options ( #1989 )
2020-03-02 15:52:14 +01:00
Jaco Greeff
f59cb12ec7
Add .range([from, to?], ...args) on storage queries ( #1979 )
...
* Add .between(from, to) ot storage queries
* between -> range
* CHANGELOG
* checkTypes.manual
* Tested as working
2020-03-01 09:12:17 +01:00
Jaco Greeff
4e756704ea
Some minor cleanups ( #1966 )
...
* Some minor cleanups
* Small additions
* Cleanup ExtrinsicEra decoding
* Minor adjustments
* Remove support for metadata v0 parsing
* Adjust refCountDelay
* refCountDelay comments
* Adjust Metadata tests
* Metadata default creation
* Funky lines
* Cleanup as AccountIdAndIndex
* Some derive returns
* Try and cleanup info extraction
2020-02-27 15:01:20 +01:00
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
8598002801
Swap to registry.createType ( #1947 )
2020-02-26 11:17:11 +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
Jeremías Díaz
2d0ce2ddff
Make Strict Mode Strict Again ( #1938 )
...
* fix: don't format "unorthodox" query input types
Also add support for tuples in `getSimilarTypes`
* fix: refactor type ignore logic into `formatType`
Had to use a regexp solution because types like `([AccountId | string | Uint8Array, Data | { none: any } | { raw: any } | { blakeTwo256: any } | { sha256: any } | { keccak256: any } | { shaThree256: any } | string | Uint8Array])[]` were not being ignored with the current logic, so they were passed to `getTypeDef` and causing delimiter errors.
* refactor: remove superfluous "FirstKeyType" param
* fix: ignore tuples with structs when formatting
* feat: eliminate all index signatures with --strict
* docs: fix doc generation
2020-02-25 08:40:07 +01: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
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