This repository has been archived by the owner on May 24, 2022. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
98 changed files
with
1,625 additions
and
1,734 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,15 @@ | ||
module.exports = { | ||
collectCoverageFrom: ['**/*.{ts,tsx}', '!**/node_modules/**', '!**/*.d.ts'], | ||
collectCoverageFrom: [ | ||
'**/*.{ts,tsx}', | ||
'!**/node_modules/**', | ||
'!**/*.d.ts', | ||
'!**/index.ts' | ||
], | ||
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'node'], | ||
rootDir: '.', | ||
transform: { | ||
'^.+\\.tsx?$': 'ts-jest' | ||
}, | ||
// testRegex: 'spec\\.(ts|tsx)$' // TODO Skip api/ tests for now, as it's still WIP | ||
testRegex: | ||
'packages/(abi|electron|light.js|light.js-react)/.*spec\\.(ts|tsx)$' | ||
testRegex: `packages/(abi|electron|light\.js|light\.js-react)/.*spec\\.(ts|tsx)$` | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
// Copyright 2015-2018 Parity Technologies (UK) Ltd. | ||
// This file is part of Parity. | ||
// | ||
// SPDX-License-Identifier: MIT | ||
|
||
declare module '@parity/abi'; | ||
declare module '@parity/abi/lib/spec/function'; | ||
declare module '@parity/api'; | ||
declare module '@parity/api/lib/util'; | ||
declare module '@parity/api/lib/util/encode'; | ||
declare module '@parity/api/lib/util/types'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,33 @@ | ||
* ["api"](modules/_api_.md) | ||
* ["frequency/accounts"](modules/_frequency_accounts_.md) | ||
* ["frequency/blocks"](modules/_frequency_blocks_.md) | ||
* ["frequency/frequency"](modules/_frequency_frequency_.md) | ||
* ["frequency/health"](modules/_frequency_health_.md) | ||
* ["frequency/other"](modules/_frequency_other_.md) | ||
* ["frequency/time"](modules/_frequency_time_.md) | ||
* ["frequency/utils/createOnFromPubsub"](modules/_frequency_utils_createonfrompubsub_.md) | ||
* ["rpc/eth/eth"](modules/_rpc_eth_eth_.md) | ||
* ["rpc/net/net"](modules/_rpc_net_net_.md) | ||
* ["frequency/utils/createPubsubObservable"](modules/_frequency_utils_createpubsubobservable_.md) | ||
* ["rpc/eth"](modules/_rpc_eth_.md) | ||
* ["rpc/net"](modules/_rpc_net_.md) | ||
* ["rpc/other/makeContract"](modules/_rpc_other_makecontract_.md) | ||
* [MakeContract](interfaces/_rpc_other_makecontract_.makecontract.md) | ||
* ["rpc/other/post"](modules/_rpc_other_post_.md) | ||
* ["rpc/parity/parity"](modules/_rpc_parity_parity_.md) | ||
* [PostOptions](interfaces/_rpc_other_post_.postoptions.md) | ||
* ["rpc/parity"](modules/_rpc_parity_.md) | ||
* ["rpc/rpc"](modules/_rpc_rpc_.md) | ||
* ["rpc/utils/createRpc"](modules/_rpc_utils_createrpc_.md) | ||
* ["types"](modules/_types_.md) | ||
* [FrequencyObservable](interfaces/_types_.frequencyobservable.md) | ||
* [FrequencyObservableOptions](interfaces/_types_.frequencyobservableoptions.md) | ||
* [MakeContract](interfaces/_types_.makecontract.md) | ||
* [Metadata](interfaces/_types_.metadata.md) | ||
* [RpcObservable](interfaces/_types_.rpcobservable.md) | ||
* [RpcObservableOptions](interfaces/_types_.rpcobservableoptions.md) | ||
* [TxStatus](interfaces/_types_.txstatus.md) | ||
* ["utils/isLoading"](modules/_utils_isloading_.md) | ||
* ["utils/isObservable"](modules/_utils_isobservable_.md) | ||
* ["utils/operators/distinctReplayRefCount"](modules/_utils_operators_distinctreplayrefcount_.md) | ||
* ["utils/operators/distinctValues"](modules/_utils_operators_distinctvalues_.md) | ||
* ["utils/operators/switchMapPromise"](modules/_utils_operators_switchmappromise_.md) | ||
* ["utils/operators/withoutLoading"](modules/_utils_operators_withoutloading_.md) | ||
* ["utils/testHelpers/mockApi"](modules/_utils_testhelpers_mockapi_.md) | ||
* ["utils/testHelpers/mockRpc"](modules/_utils_testhelpers_mockrpc_.md) | ||
* ["utils/testHelpers/testFrequency"](modules/_utils_testhelpers_testfrequency_.md) | ||
* ["utils/testHelpers/testRpc"](modules/_utils_testhelpers_testrpc_.md) |
40 changes: 40 additions & 0 deletions
40
packages/light.js/docs/api/interfaces/_rpc_other_makecontract_.makecontract.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
|
||
|
||
# Hierarchy | ||
|
||
**MakeContract** | ||
|
||
# Indexable | ||
|
||
\[index: `string`\]: `any` | `string` | `function` | ||
|
||
# Properties | ||
|
||
<a id="abi"></a> | ||
|
||
## abi | ||
|
||
**● abi**: *`any`* | ||
|
||
*Defined in [rpc/other/makeContract.ts:18](https://github.com/paritytech/js-libs/blob/3a885fe/packages/light.js/src/rpc/other/makeContract.ts#L18)* | ||
|
||
___ | ||
<a id="address"></a> | ||
|
||
## address | ||
|
||
**● address**: *`string`* | ||
|
||
*Defined in [rpc/other/makeContract.ts:19](https://github.com/paritytech/js-libs/blob/3a885fe/packages/light.js/src/rpc/other/makeContract.ts#L19)* | ||
|
||
___ | ||
<a id="contractobject"></a> | ||
|
||
## contractObject | ||
|
||
**● contractObject**: *`any`* | ||
|
||
*Defined in [rpc/other/makeContract.ts:20](https://github.com/paritytech/js-libs/blob/3a885fe/packages/light.js/src/rpc/other/makeContract.ts#L20)* | ||
|
||
___ | ||
|
31 changes: 31 additions & 0 deletions
31
packages/light.js/docs/api/interfaces/_rpc_other_post_.postoptions.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
|
||
|
||
# Hierarchy | ||
|
||
[RpcObservableOptions](_types_.rpcobservableoptions.md) | ||
|
||
**↳ PostOptions** | ||
|
||
# Properties | ||
|
||
<a id="estimate"></a> | ||
|
||
## `<Optional>` estimate | ||
|
||
**● estimate**: *`boolean`* | ||
|
||
*Defined in [rpc/other/post.ts:13](https://github.com/paritytech/js-libs/blob/3a885fe/packages/light.js/src/rpc/other/post.ts#L13)* | ||
|
||
___ | ||
<a id="provider"></a> | ||
|
||
## `<Optional>` provider | ||
|
||
**● provider**: *`any`* | ||
|
||
*Inherited from [RpcObservableOptions](_types_.rpcobservableoptions.md).[provider](_types_.rpcobservableoptions.md#provider)* | ||
|
||
*Defined in [types.ts:72](https://github.com/paritytech/js-libs/blob/3a885fe/packages/light.js/src/types.ts#L72)* | ||
|
||
___ | ||
|
18 changes: 18 additions & 0 deletions
18
packages/light.js/docs/api/interfaces/_types_.__global.window.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
|
||
|
||
# Hierarchy | ||
|
||
**Window** | ||
|
||
# Properties | ||
|
||
<a id="parity"></a> | ||
|
||
## parity | ||
|
||
**● parity**: *`any`* | ||
|
||
*Defined in [types.ts:14](https://github.com/paritytech/js-libs/blob/3a885fe/packages/light.js/src/types.ts#L14)* | ||
|
||
___ | ||
|
Oops, something went wrong.