Jaco
2c949e0fc5
Update headers for 2023 ( #5392 )
2023-01-01 10:25:51 +02:00
Xiliang Chen
521fa2026d
fix unkown rpc ( #5325 )
...
* fix unkown rpc
* fix
2022-11-10 07:32:23 +02:00
Jaco
d9aa61c786
Add isClonable getter on providers ( #5317 )
...
* Add isClonable getter on providers
* Use isClonable in API constructor
* mock clonable
2022-11-04 10:52:51 +02:00
Jaco
cb283c410b
Use type asserts for json imports ( #5072 )
2022-07-15 11:13:12 +03:00
Jaco
aa5cc1eef1
Use ReturnType<typeof setInterval> for timerIds ( #5060 )
...
* Use ReturnType<typeof setInterval> for timerIds
* Remove as number casts for clearInterval
2022-07-12 08:31:50 +03:00
Jaco
fd5b48058e
Bump common ( #5043 )
...
* Bump common
* Adjust deprecated util signatures
* Adjust
* Adjust http mock typings
2022-07-08 09:31:49 +03:00
Jaco
75bbd042a9
Adjust NodeJS.Timout type usage ( #5026 )
2022-07-04 16:15:50 +03:00
Jaco
3a8b1c5683
Adjust assert usage ( #4966 )
...
* Adjust assert usage
* Adjust assert
* Apply suggestions from code review
2022-06-20 20:37:17 +03:00
Jaco
8ba4ed5377
2022 ( #4404 )
2022-01-01 09:28:18 +02:00
Jaco
67ee8b08d9
Ensure *.d.ts files are generated in outputs ( #4362 )
...
* Ensure *.d.ts files are generated in outputs
* Adjust
* Additional dep
* Update
* Update refs
2021-12-20 10:00:10 +02:00
Jaco
fcee83d803
Split into types-augment ( #4350 )
...
* Aplit into types-augment
* Adjust
* Adjust, fix typegen run
* Adjust
* Rebuild
* Adjust
* Adjust
* CC
2021-12-18 17:31:18 +02:00
Jaco
4913cf65fd
Move api-derive to correct location ( #4343 )
...
* Move api-derive to correct location
* Adjust (linting ok)
* No composite
* ApiDerive split
* Adjust
* Still WIP, getting closer
* It lints
* derive build issues sorted
* It builds :)
* Add system_health to mock
* api-augment usage
* Cleanups
* Adjust paths
* linting
* Some <'s
* Revert <>'s
* linting
* ordering
* Augmentation tweaks
* yarn.lock
* export
2021-12-18 09:18:55 +02:00
Jaco
736fd536f9
Use tsconfig references ( #4328 )
...
* Use tsconfig references
* Move types-known (temp until lower-level split)
* Sources
* Adjust
* tesconfig.eslint.json
* Bumps
* AdjustAdjust
* Linting passing... a start...
* Adjust
* Merge derive
* Merge
* api-contract-support
* It builds?
* compare locations
2021-12-14 12:04:50 +02:00
Jaco
f603100b8b
Add @polkadot/types-support ( #3842 )
...
* Add @polkadot/types-support
* jest config fix
* typegen lookups
* Build fixes
* Explicit kusama naming
* testMeta for v14 (local)
* CI test failure
* CI test failure v14
* Update with corrected data after test
* types-support json imports
2021-08-04 10:39:21 +02:00
Jaco
3172cb55f8
Add Polkadot static metadata ( #3827 )
...
* Add Polkadot static metadata
* v13 static polkadot
* v14 static polkadot
* CHANGELOG
2021-07-30 13:56:39 +02:00
Jaco
92a1f603d9
Move metadata into types (circular deps hell) ( #3743 )
...
* Move metadata into types (circular deps hells)
* Adjust
* Additional
* Additional
* Last round?
* Adjust imports
* Adjust
* packages
* Bump common
2021-07-07 14:00:30 +02:00
Jaco
bdaacfdd56
BN import from util ( #3637 )
...
* BN import from util
* Update packages/api-derive/src/staking/stakerRewards.ts
2021-06-11 12:52:21 +02:00
Jaco
400e14d6c9
Explicit length checks for u8aFixed ( #3630 )
...
* Explicit length checks for u8aFixed
* Adjust tests
2021-06-09 15:19:48 +02:00
Jaco
2d02f61fa7
Align Data.Raw decoding with Substrate (32-bytes) ( #3573 )
...
* Align Data.Raw decoding with Substrate (32-bytes)
* CHANGELOG
* Encoding test updates
* provider.disconnect
* Adjust provider tests
* Unique connection URLs
* Dangling tests
* detectOpenHandles
* Additional
* Remove rx test (catered for by Promise wrap)
* Additional cleanups to tests
2021-05-27 10:18:56 +02:00
Jaco
a7b4fe4dd0
Adjust internal TS definitions for providers ( #3503 )
2021-05-07 09:16:10 +02:00
Jaco
c243da79e1
Prepare for auto-capability detection for historic queries ( #3474 )
...
* Add auto-capability detection for historic queries
* Detect
* Detection via storage length
* Capabilities via storage sizes
* Update CHANGELOG.md
* Explicit
* CHANGELOG
* Westend upgrade block
* Pass registry explcitly
* Updates
* Adjust
* .at remove capabilities call
2021-05-05 21:12:50 +02:00
Jaco
a6fcba95de
Adjust capability detection ( #3473 )
...
* Adjust capability detection
* Adjust types
* Fully known isU32
2021-05-03 15:24:31 +02:00
Jaco
557283a3d1
Struct decoding error messaging ( #3425 )
...
* Struct decoding error messaging
* Error adjust
* Tests
* Bump common, use stringify
* Linting
* Adjust
* Bumps
* Rebump
* Assert cleanups
* Don't modify original value on encoding
* util bump, fixe compact encoding
2021-04-22 15:02:54 +02:00
Jaco Greeff
a9c9fb5769
2021 ( #3015 )
2021-01-03 11:26:46 +01:00
Jaco Greeff
926d1e55d1
Parallel RPC calls (metadata/methods alongside chain details) ( #3011 )
...
* Parallel metadata retrieval
* Update
* Parallel genesisHash
* Checks
* rpc_methods in mock provider (now required)
2021-01-02 09:44:08 +01:00
Jaco Greeff
987896e323
Adjust for last remaining circular deps ( #2971 )
...
* Adjust for last remaining circular deps
* Remove RegistryMetadata duplication
* Update packages/typegen/scripts/polkadot-types-internal-interfaces.js
* typo
* Direct decorateExtrinsics import
2020-12-21 17:17:20 +01:00
Jaco Greeff
8e6a1c8fb1
Bump dev (sort imports) ( #2923 )
...
* Bump dev (sort imports)
* Resort
* Adjust ApiInterfaceRx
2020-12-07 16:26:19 +01:00
Jaco Greeff
0e52e8fe23
Some type imports (interfaces) ( #2887 )
...
* Some type imports (interfaces)
* Additional
* Additional
* Small movements/fixes
* Additional
* Additional
* Unsaved...
2020-12-02 10:12:19 +01:00
Jaco Greeff
5a1fd4a1bb
Adjust internal generic imports ( #2838 )
2020-11-11 09:40:35 +01:00
Jaco Greeff
af9437f80a
Adjust create imports ( #2834 )
...
* Adjust create imports
* Restore create root exports
* Adjust unsafe creation
2020-11-10 11:14:38 +01:00
Jaco Greeff
21d0622f84
Bump common ( #2832 )
...
* Bump common
* Update for new common non-default exports
* Don't export createSubmittable
* Adjust exports
* default export adjustments
* Some additional non-default exports
2020-11-09 19:41:29 +01:00
Jaco Greeff
94ebb321f1
Complexity adjustments ( #2803 )
...
* Complexity adjustments
* cleanups
* Small cleanups
* Additional
* revert era
* ExtrinsicEra
2020-10-29 14:20:10 +01:00
Jaco Greeff
ea3ee428d8
Rework asLatest update ( #2802 )
...
* Revert "[CI Skip] release/beta 2.4.2-10"
This reverts commit 5cb1c2d33a .
* Revert "Use asLatest in metadata extraction (#2800 )"
This reverts commit 600666de1c .
* Bumps
* Expansion
* Flatten
* Metadata class imports
* Cleanup Decorate exports
* Move Metadata to top-level
* Swap logger on ABI
* Adjust imports
* Cleanups
* Updates
2020-10-29 11:59:37 +01:00
Jaco Greeff
600666de1c
Use asLatest in metadata extraction ( #2800 )
...
* User asLatest in metadata extraction
* Cleanup Decorated, bump
* linting
* cleanup decorate
* Remove registry arg from Decorated
2020-10-29 09:05:53 +01:00
Jaco Greeff
b56c1a8282
Explicit tie of metadata to registry (not implicit) ( #2621 )
...
* Explicit tie of metadata to registry (not implicit)
* Update type generation
* Test updates
* Revert non-problematic
* Cleanup mocks
* Updata metadata tests
* CHANGELOG
* linting
2020-09-17 23:15:09 +02:00
Jaco Greeff
cdd6544e20
SPDX ( #2619 )
2020-09-17 16:31:06 +02:00
Jaco Greeff
00bc441f0e
Add connected() to API interface ( #2580 )
...
* Add connected() to API interface
* Slight doc update
* Align ApiRx
* isConnected() usage
* Updates
* Retrieve isConnected for API via observable
* Remove (now) useless Rx test
2020-09-04 17:57:02 +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
e7a01f9780
Dump dev (incl. eslint header checks) ( #2142 )
2020-04-07 11:20:07 +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
21a2b5f0b7
signAndSend with finalized hash (depending on lag) ( #2104 )
...
* signAndSend with finalized hash (depending on drift)
* Extract lag calc
* mock update
* getSigningHeader
* api.derive.tx (with submittable cleanups)
* Adjust mortal calculations
* Cleanup new tx derives
* Optimize calcs
* Comment cleanups, next-up testing
* Adjust mocks
* Adjust sig (period is now based on metadata)
* Remove extra fn, tested and it works
2020-03-27 13:26:12 +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
dd217f82b2
Chunk keys & values retrievals on keys()/entries() ( #2046 )
...
* Chunk keys & values retrievals on keys()/entries()
* Bump chunk sizes
* Fix concatMap index
* Update mock
2020-03-13 19:40:57 +01:00
Jaco Greeff
99d4806a0d
Enable new indexes queries ( #2022 )
...
* Enable new indexes queries
* update mock for state_getKeys
2020-03-10 17:56:20 +01:00
Jaco Greeff
8598002801
Swap to registry.createType ( #1947 )
2020-02-26 11:17:11 +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
9d4b0ea56a
Update Substrate with vesting ( #1790 )
...
* Update Substrate with vesting
* Update balances & vesting queries with compat)
* Split base account queries
* Linting, simpler referendum voters
* Fix (some) tests
2020-02-02 08:50:37 +01:00
Jakub Pánik
59e069f091
Added unsubscribe return function to wsProvider.on() ( #1780 )
...
* Added unsubscribe return function to wsProvider.on()
* Updated mocks, added noop to http provider
2020-01-30 16:48:11 +01:00