Skip to content
This repository was archived by the owner on May 24, 2022. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
8a59985
FrequencyObservable as a function returning a observable
amaury1093 Sep 7, 2018
f113991
Fix tests
amaury1093 Sep 7, 2018
5e613d4
Test a new api
amaury1093 Sep 12, 2018
9ecae21
Make frequency observables work
amaury1093 Sep 13, 2018
660c5ef
Fix tests
amaury1093 Sep 13, 2018
6e99b67
Remove overview
amaury1093 Sep 13, 2018
e4298fa
Don't cover index.ts
amaury1093 Sep 13, 2018
bb5509c
Fix a lot of stuff
amaury1093 Sep 13, 2018
1008d5a
Remove useless import
amaury1093 Sep 13, 2018
3aa360b
Change testRegex for jest
amaury1093 Sep 13, 2018
ea75324
Add ambient for packages with no typigns
amaury1093 Sep 13, 2018
7c03c5c
Generate docs
amaury1093 Sep 13, 2018
80b283f
Remove NullProvider
amaury1093 Sep 13, 2018
a46b19a
Remove NullProvider
amaury1093 Sep 13, 2018
3447e95
Regenerate docs
amaury1093 Sep 13, 2018
1f0c25a
Silent jest on CI
amaury1093 Sep 13, 2018
b4404e2
Fix makeContract and post
amaury1093 Sep 13, 2018
165df16
Regen docs
amaury1093 Sep 13, 2018
9b8edd8
Update summary
amaury1093 Sep 13, 2018
fb89a94
Update ambient
amaury1093 Sep 13, 2018
439d3bd
Export post$ too
amaury1093 Sep 13, 2018
18e640f
Fix makeContract
amaury1093 Sep 13, 2018
431fe51
Fix memoization for frequency observables
amaury1093 Sep 17, 2018
44dde4a
Don't lint lib
amaury1093 Sep 17, 2018
15caa62
Fix bugs with rpc$
amaury1093 Sep 17, 2018
0cbe22a
Remove useless packages
amaury1093 Sep 17, 2018
85f8fb9
Generate docs
amaury1093 Sep 17, 2018
c5e0c56
Update withoutLoading syntax
amaury1093 Sep 17, 2018
82fca45
Use json.stringify for normalizer
amaury1093 Sep 17, 2018
4893e97
Fix bug normalizer
amaury1093 Sep 17, 2018
e449a57
Remove withApi in docs
amaury1093 Sep 17, 2018
3a885fe
Fix bug memoization
amaury1093 Sep 17, 2018
c6ee32e
Remove onEvery2Blocks
amaury1093 Sep 17, 2018
041441b
Options then args
amaury1093 Sep 17, 2018
8a066db
CreateRpc in makeContract fix
amaury1093 Sep 17, 2018
d2bb3c7
Fix getContract memoization
amaury1093 Sep 17, 2018
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Generate docs
  • Loading branch information
amaury1093 committed Sep 17, 2018
commit 85f8fb98a807bb2472711650760ec13bca3b2457
1 change: 0 additions & 1 deletion packages/light.js-react/src/ambient.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,3 @@ declare module '@parity/api';
declare module '@parity/api/lib/util';
declare module '@parity/api/lib/util/encode';
declare module '@parity/api/lib/util/types';
declare module 'json-prune';
1 change: 0 additions & 1 deletion packages/light.js/docs/SUMMARY.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@
- [rpc/parity/parity](api/modules/_rpc_parity_parity_.md)
* [Types](modules/_types_.md)
- [FrequencyObservable](interfaces/_types_.frequencyobservable.md)
- [FrequencyObservableMetadata](interfaces/_types_.frequencyobservablemetadata.md)
- [FrequencyObservableOptions](interfaces/_types_.frequencyobservableoptions.md)
- [MakeContract](interfaces/_types_.makecontract.md)
- [Metadata](interfaces/_types_.metadata.md)
Expand Down
4 changes: 2 additions & 2 deletions packages/light.js/docs/api/SUMMARY.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,14 @@
* ["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)
* [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)
* [FrequencyObservableMetadata](interfaces/_types_.frequencyobservablemetadata.md)
* [FrequencyObservableOptions](interfaces/_types_.frequencyobservableoptions.md)
* [MakeContract](interfaces/_types_.makecontract.md)
* [Metadata](interfaces/_types_.metadata.md)
Expand All @@ -24,7 +25,6 @@
* [TxStatus](interfaces/_types_.txstatus.md)
* ["utils/isLoading"](modules/_utils_isloading_.md)
* ["utils/isObservable"](modules/_utils_isobservable_.md)
* ["utils/memoizeAll"](modules/_utils_memoizeall_.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)
Expand Down
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/0cbe22a/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/0cbe22a/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/0cbe22a/packages/light.js/src/rpc/other/makeContract.ts#L20)*

___

Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@


# 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/0cbe22a/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/0cbe22a/packages/light.js/src/types.ts#L72)*

___
<a id="withoutloading"></a>

## `<Optional>` withoutLoading

**● withoutLoading**: *`boolean`*

*Inherited from [RpcObservableOptions](_types_.rpcobservableoptions.md).[withoutLoading](_types_.rpcobservableoptions.md#withoutloading)*

*Defined in [types.ts:73](https://github.com/paritytech/js-libs/blob/0cbe22a/packages/light.js/src/types.ts#L73)*

___

18 changes: 18 additions & 0 deletions packages/light.js/docs/api/interfaces/_types_.__global.window.md
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/0cbe22a/packages/light.js/src/types.ts#L14)*

___

Original file line number Diff line number Diff line change
Expand Up @@ -7,27 +7,15 @@
**FrequencyObservable**

# Callable
▸ **__call**(...args: *`any`[]*): `Observable`<`T`>
▸ **__call**(options?: *[FrequencyObservableOptions](_types_.frequencyobservableoptions.md)*): `Observable`<`T`>

*Defined in [types.ts:51](https://github.com/paritytech/js-libs/blob/b4404e2/packages/light.js/src/types.ts#L51)*
*Defined in [types.ts:46](https://github.com/paritytech/js-libs/blob/0cbe22a/packages/light.js/src/types.ts#L46)*

**Parameters:**

| Param | Type |
| ------ | ------ |
| `Rest` args | `any`[] |
| `Optional` options | [FrequencyObservableOptions](_types_.frequencyobservableoptions.md) |

**Returns:** `Observable`<`T`>

# Properties

<a id="metadata"></a>

## `<Optional>` metadata

**● metadata**: *[FrequencyObservableMetadata](_types_.frequencyobservablemetadata.md)*

*Defined in [types.ts:53](https://github.com/paritytech/js-libs/blob/b4404e2/packages/light.js/src/types.ts#L53)*

___

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

**● provider**: *`any`*

*Defined in [types.ts:48](https://github.com/paritytech/js-libs/blob/b4404e2/packages/light.js/src/types.ts#L48)*
*Defined in [types.ts:43](https://github.com/paritytech/js-libs/blob/0cbe22a/packages/light.js/src/types.ts#L43)*

___

6 changes: 3 additions & 3 deletions packages/light.js/docs/api/interfaces/_types_.makecontract.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

**● abi**: *`any`*

*Defined in [types.ts:61](https://github.com/paritytech/js-libs/blob/b4404e2/packages/light.js/src/types.ts#L61)*
*Defined in [types.ts:55](https://github.com/paritytech/js-libs/blob/0cbe22a/packages/light.js/src/types.ts#L55)*

___
<a id="address"></a>
Expand All @@ -25,7 +25,7 @@ ___

**● address**: *`string`*

*Defined in [types.ts:62](https://github.com/paritytech/js-libs/blob/b4404e2/packages/light.js/src/types.ts#L62)*
*Defined in [types.ts:56](https://github.com/paritytech/js-libs/blob/0cbe22a/packages/light.js/src/types.ts#L56)*

___
<a id="contractobject"></a>
Expand All @@ -34,7 +34,7 @@ ___

**● contractObject**: *`any`*

*Defined in [types.ts:63](https://github.com/paritytech/js-libs/blob/b4404e2/packages/light.js/src/types.ts#L63)*
*Defined in [types.ts:57](https://github.com/paritytech/js-libs/blob/0cbe22a/packages/light.js/src/types.ts#L57)*

___

12 changes: 6 additions & 6 deletions packages/light.js/docs/api/interfaces/_types_.metadata.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

**● calledWithArgs**: *`object`*

*Defined in [types.ts:30](https://github.com/paritytech/js-libs/blob/b4404e2/packages/light.js/src/types.ts#L30)*
*Defined in [types.ts:30](https://github.com/paritytech/js-libs/blob/0cbe22a/packages/light.js/src/types.ts#L30)*

#### Type declaration

Expand All @@ -28,7 +28,7 @@ ___

**● calls**: *`string`[]*

*Defined in [types.ts:33](https://github.com/paritytech/js-libs/blob/b4404e2/packages/light.js/src/types.ts#L33)*
*Defined in [types.ts:33](https://github.com/paritytech/js-libs/blob/0cbe22a/packages/light.js/src/types.ts#L33)*

___
<a id="dependson"></a>
Expand All @@ -37,7 +37,7 @@ ___

**● dependsOn**: *[RpcObservable](_types_.rpcobservable.md)<`any`, `Source`>*

*Defined in [types.ts:34](https://github.com/paritytech/js-libs/blob/b4404e2/packages/light.js/src/types.ts#L34)*
*Defined in [types.ts:34](https://github.com/paritytech/js-libs/blob/0cbe22a/packages/light.js/src/types.ts#L34)*

___
<a id="frequency"></a>
Expand All @@ -46,7 +46,7 @@ ___

**● frequency**: *[FrequencyObservable](_types_.frequencyobservable.md)<`Source`>[]*

*Defined in [types.ts:35](https://github.com/paritytech/js-libs/blob/b4404e2/packages/light.js/src/types.ts#L35)*
*Defined in [types.ts:35](https://github.com/paritytech/js-libs/blob/0cbe22a/packages/light.js/src/types.ts#L35)*

___
<a id="name"></a>
Expand All @@ -55,7 +55,7 @@ ___

**● name**: *`string`*

*Defined in [types.ts:36](https://github.com/paritytech/js-libs/blob/b4404e2/packages/light.js/src/types.ts#L36)*
*Defined in [types.ts:36](https://github.com/paritytech/js-libs/blob/0cbe22a/packages/light.js/src/types.ts#L36)*

___
<a id="pipes"></a>
Expand All @@ -64,7 +64,7 @@ ___

**● pipes**: *`function`*

*Defined in [types.ts:37](https://github.com/paritytech/js-libs/blob/b4404e2/packages/light.js/src/types.ts#L37)*
*Defined in [types.ts:37](https://github.com/paritytech/js-libs/blob/0cbe22a/packages/light.js/src/types.ts#L37)*

#### Type declaration
▸(...args: *`any`[]*): `OperatorFunction`<`Source`, `Out`>[]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
# Callable
▸ **__call**(...args: *`any`[]*): `Observable`<`Out`>

*Defined in [types.ts:69](https://github.com/paritytech/js-libs/blob/b4404e2/packages/light.js/src/types.ts#L69)*
*Defined in [types.ts:63](https://github.com/paritytech/js-libs/blob/0cbe22a/packages/light.js/src/types.ts#L63)*

**Parameters:**

Expand All @@ -28,7 +28,7 @@

**● metadata**: *[Metadata](_types_.metadata.md)<`Source`, `Out`>*

*Defined in [types.ts:71](https://github.com/paritytech/js-libs/blob/b4404e2/packages/light.js/src/types.ts#L71)*
*Defined in [types.ts:65](https://github.com/paritytech/js-libs/blob/0cbe22a/packages/light.js/src/types.ts#L65)*

___

Expand All @@ -40,7 +40,7 @@ ___

▸ **setFrequency**(frequency: *[FrequencyObservable](_types_.frequencyobservable.md)<`Source`>[]*): `void`

*Defined in [types.ts:72](https://github.com/paritytech/js-libs/blob/b4404e2/packages/light.js/src/types.ts#L72)*
*Defined in [types.ts:66](https://github.com/paritytech/js-libs/blob/0cbe22a/packages/light.js/src/types.ts#L66)*

**Parameters:**

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

**RpcObservableOptions**

↳ [PostOptions](_rpc_other_post_.postoptions.md)

# Properties

<a id="provider"></a>
Expand All @@ -12,7 +14,7 @@

**● provider**: *`any`*

*Defined in [types.ts:78](https://github.com/paritytech/js-libs/blob/b4404e2/packages/light.js/src/types.ts#L78)*
*Defined in [types.ts:72](https://github.com/paritytech/js-libs/blob/0cbe22a/packages/light.js/src/types.ts#L72)*

___
<a id="withoutloading"></a>
Expand All @@ -21,7 +23,7 @@ ___

**● withoutLoading**: *`boolean`*

*Defined in [types.ts:79](https://github.com/paritytech/js-libs/blob/b4404e2/packages/light.js/src/types.ts#L79)*
*Defined in [types.ts:73](https://github.com/paritytech/js-libs/blob/0cbe22a/packages/light.js/src/types.ts#L73)*

___

Loading