Jaco Greeff
4ec42f1750
Ensure non-destructive registry swap ( #2543 )
...
* Ensure non-destructive registry swap
* Update packages/api/src/base/Init.ts
2020-08-31 08:59:20 +02:00
Jaco Greeff
7876bb9ced
Add isHistoric flags to RPC with hash params ( #2535 )
...
* Add isHistoric flags to RPC with hash params
* Update packages/types/src/interfaces/chain/definitions.ts
* Apply suggestions from code review
* Transparently swap registry on RPC layer
* Simplify (& linting fixes)
* Cleanups
* CHANGELOG
2020-08-30 12:12:18 +02:00
Jaco Greeff
c4323d5e94
Add swapRegistry(hash?) to initlize clean registry ( #2534 )
...
* Add swapRegistry(hash?) to initlize clean registry
* Cater for genesisHash queries
2020-08-29 15:46:42 +02:00
Jaco Greeff
e7669c2b00
Add api typesBundle ( #2422 )
...
* Add api typesBundle
* Inject user-defined RPC from spec/chain
* Linting cleanups
* Invert check fro non-existing
* Extract bundle injection
* Ignore RPC for the first round
* CHANGELOG
* Merge master
2020-07-27 09:12:04 +02:00
Jaco Greeff
76da2638c1
Ensure subscriptions always unsubscribe as required ( #2380 )
...
* Ensure single-shot calls always unsubscribe
* memo/refCount cleanups
* Fix unsubscriptions
* Cleanup linting types
* CHANGELOG
2020-06-23 13:47:28 +02:00
Jaco Greeff
c7315ffb74
Do not use subscriptions on single subs ( #2378 )
...
* Do not use subscriptions on single subs
* Apply suggestions from code review
2020-06-23 09:29:49 +02:00
Jaco Greeff
5c5db2709b
Add system_dryRun RPCs ( #2363 )
...
* Add system_dryRun RPCs
* CHANGELOG
2020-06-18 10:15:41 +02:00
Jaco Greeff
a1655508ba
Cleanups in API typing (& overrides) ( #2362 )
...
* Cleanups in API typing (& overrides)
* Less magic "as" overrides
2020-06-18 09:52:39 +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
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
a1ad90c2b4
1.13 ( #2248 )
...
* 1.13
* Add grandpa_roundState RPC
* RPC interfaces
2020-05-06 20:22:18 +02:00
Jaco Greeff
844d1a2928
Allow failures on preimage (instead of swallow) ( #2225 )
2020-04-30 15:14:56 +02:00
Jaco Greeff
3de09a2e27
Hack around preimage failures ( #2217 )
2020-04-27 18:59:18 +02:00
Jaco Greeff
e3d3a1ff71
Handle no keysReturn StorageChangeSet with no keys ( #2212 )
2020-04-27 08:54:02 +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
9ba91a3851
Use forkJoin for entries() retrieval ( #2152 )
...
* Use forkJoin for entries() retrieval
* Some current and validator retrieval opts
* Remove duplicate filtering
2020-04-10 12:12:10 +02:00
Jaco Greeff
afdb476796
Small cleanups & consistency ( #2151 )
...
* Small cleanups & consistency
* Fixes
2020-04-09 18:32:30 +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
6aa0d90fc0
Add childstate_* RPCs ( #2065 )
...
* Add childstate_* RPCs
* childstate into rpc-core
* PrefixedStorageKey
2020-03-30 13:53:33 +02: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
8976ded37f
Add state_queryStorageAt RPC ( #2082 )
...
* Add state_queryStorageAt RPC
* Add queryStorageAt rpc
* Clanup merge
2020-03-26 21:08:34 +01:00
Jaco Greeff
a0979a9ce3
Only format error log, upstream error from core ( #2089 )
...
* Only format error log, upstream error from core
* Remove (now unused) wrapping info
2020-03-25 08:00:14 +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
af11444b72
Update RPCs (babe, contracts) ( #2074 )
...
* Update RPCs (babe, contracts)
* Babe in rpc-core
2020-03-21 07:50:56 +01:00
Jaco Greeff
3a1634d67f
Add all missing RPC endpoints ( #2070 )
...
* Add all missing RPC endpoints
* Rework RPC return types
* rpc-core interface
* Remove crap test, checked anyway
2020-03-20 13:42:18 +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
1d8b6a79ef
Rework rpc.queryStorage to return [Hash, Codec[]][] ( #2025 )
2020-03-11 12:21:09 +01:00
Jaco Greeff
c1facd8b1c
memo for range & entries
2020-03-09 22:57:09 +01:00
Jaco Greeff
0e297c6779
Add rpc.raw interface, convert RPC to Augmented wrappers ( #1990 )
...
* Add rpc.raw interface, convert RPC to Augmented
* Augmentaton attempt...
* Failing test
* Fix augmentation
* Cleanup linting
* Expose .raw on decorated RPCs
* .raw into CHANGELOG
* Stray eslint overrides
2020-03-03 08:49:24 +01:00
Jaco Greeff
af1a3385cc
Raise error on parsing errors ( #1987 )
2020-03-02 09:09:27 +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
Amaury Martiny
370dc86817
Fix ProviderInterfaceCallback type ( #1965 )
2020-02-27 13:36:26 +01:00
Jaco Greeff
8598002801
Swap to registry.createType ( #1947 )
2020-02-26 11:17:11 +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
921e55a82e
Move types/codec/create -> types/create ( #1871 )
...
* Move types/codec/create -> types/create
* Update imports after move
* Cleanups
* Cleanup code circular deps
* Re-add dropped interfaces
* Drop duplicated code
* Fix imports
* Remove whacky comment
2020-02-16 13:51:37 +01:00
Jaco Greeff
6e535b0502
Don't make types depend on api (dev deps) ( #1869 )
...
* Don't make types depend on api (dev deps)
* Naming cleanups
* Remove skipped tests
* Splt types/types into chunks
* Re-add setChainProperties (properties?: ChainProperties): void;
2020-02-16 13:13:56 +01:00
Jaco Greeff
5c4920db6f
Remove balances.freeBalance & system.accountNonce refs ( #1847 )
...
* Remove freeBalance references
* Cleanup placeholders
* Add substrate templates to .gitignore
* Swap all use of system.accountNonce
* typo
2020-02-14 13:52:45 +01:00
Jaco Greeff
00e567b662
Bump metadata ( #1844 )
...
* Bump metadata
* Copy error
* Bump dev
* Fix linting
* Adjust some tests
* FIXME for formatting
2020-02-14 10:15:11 +01:00
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
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
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
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
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
eb5ee9860b
Multi query adjustments ( #1732 )
2020-01-20 13:58:07 +01:00
Stefanie Doll
cc4a4607f1
Updated child storage parameters ( #1709 )
...
* Added child_definition and child_type to chicl dtorage RPC methods
* reset comments in test file
* reverse docs re-built
* Fix linting on child storage tests
2020-01-14 14:07:41 +01:00