@reef-chain/react-lib 2.4.0 → 2.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api/tokens.d.ts +3 -1
- package/dist/appState/providerState.d.ts +3 -3
- package/dist/hooks/useAddLiquidity.d.ts +2 -1
- package/dist/hooks/useInitReefState.d.ts +4 -3
- package/dist/hooks/useLoadSignerTokens.d.ts +3 -1
- package/dist/hooks/useRemoveLiquidity.d.ts +2 -1
- package/dist/hooks/useSwapState.d.ts +2 -1
- package/dist/hooks/useTransactionHistory.d.ts +2 -2
- package/dist/index.js +4 -4
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +4 -4
- package/dist/index.modern.js.map +1 -1
- package/dist/state/token.d.ts +0 -15
- package/dist/utils/transactionUtil.d.ts +3 -1
- package/package.json +5 -5
package/dist/api/tokens.d.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { network } from "@reef-chain/util-lib";
|
|
2
2
|
import { ReefSigner, Token } from '../state';
|
|
3
|
+
type Network = network.Network;
|
|
3
4
|
export declare const loadSignerTokens: (reefSigner: ReefSigner, network: Network) => Promise<Token[]>;
|
|
5
|
+
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export declare const ACTIVE_NETWORK_LS_KEY = "reef-app-active-network";
|
|
2
|
-
export declare const currentProvider$:
|
|
3
|
-
export declare const currentNetwork$:
|
|
4
|
-
export declare const setCurrentNetwork:
|
|
2
|
+
export declare const currentProvider$: import("rxjs").Observable<import("@reef-chain/evm-provider").Provider>;
|
|
3
|
+
export declare const currentNetwork$: import("rxjs").Observable<import("@reef-chain/util-lib/dist/dts/network").Network>;
|
|
4
|
+
export declare const setCurrentNetwork: (network: import("@reef-chain/util-lib/dist/dts/network").Network) => void;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { Dispatch } from 'react';
|
|
2
2
|
import { AxiosInstance } from 'axios';
|
|
3
|
-
import
|
|
3
|
+
import { network } from "@reef-chain/util-lib";
|
|
4
4
|
import { AddressToNumber, NotifyFun, ReefSigner, Token } from '../state';
|
|
5
5
|
import { AddLiquidityActions } from '../store/actions/addLiquidity';
|
|
6
6
|
import { AddLiquidityState } from '../store/reducers/addLiquidity';
|
|
7
|
+
type Network = network.DexProtocolv2;
|
|
7
8
|
interface UseAddLiquidityState {
|
|
8
9
|
address1: string;
|
|
9
10
|
address2: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { reefState } from '@reef-chain/util-lib';
|
|
1
|
+
import { reefState, network as nw } from '@reef-chain/util-lib';
|
|
2
2
|
import { Provider } from '@reef-chain/evm-provider';
|
|
3
|
-
import type { Network } from "@reef-chain/util-lib/dist/network";
|
|
4
3
|
import { ReefSigner } from '../state';
|
|
4
|
+
type Network = nw.Network;
|
|
5
5
|
interface State {
|
|
6
6
|
error: {
|
|
7
7
|
code?: number;
|
|
@@ -17,7 +17,8 @@ interface State {
|
|
|
17
17
|
}
|
|
18
18
|
export interface InitReefStateOptions {
|
|
19
19
|
network?: Network;
|
|
20
|
-
ipfsHashResolverFn?: reefState.
|
|
20
|
+
ipfsHashResolverFn?: reefState.IpfsUrlResolverFn;
|
|
21
|
+
reefscanEventsConfig?: reefState.ReefscanEventsConnConfig;
|
|
21
22
|
}
|
|
22
23
|
export declare const useInitReefState: (applicationDisplayName: string, options: InitReefStateOptions) => State;
|
|
23
24
|
export {};
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { network } from "@reef-chain/util-lib";
|
|
2
2
|
import { DataWithProgress } from '../utils/dataWithProgress';
|
|
3
3
|
import { ReefSigner, Token } from '../state';
|
|
4
|
+
type Network = network.Network;
|
|
4
5
|
export declare const useLoadSignerTokens: (refreshToggle: boolean, network: Network, signer?: ReefSigner) => DataWithProgress<Token[]>;
|
|
6
|
+
export {};
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { Dispatch } from 'react';
|
|
2
2
|
import { AxiosInstance } from 'axios';
|
|
3
|
-
import
|
|
3
|
+
import { network } from "@reef-chain/util-lib";
|
|
4
4
|
import { AddressToNumber, NotifyFun, ReefSigner, Token } from '../state';
|
|
5
5
|
import { RemoveLiquidityActions, RemoveLiquidityState } from '../store';
|
|
6
|
+
type Network = network.DexProtocolv2;
|
|
6
7
|
interface OnRemoveLiquidity {
|
|
7
8
|
network?: Network;
|
|
8
9
|
signer?: ReefSigner;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { Dispatch } from 'react';
|
|
2
2
|
import { AxiosInstance } from 'axios';
|
|
3
|
-
import
|
|
3
|
+
import { network } from "@reef-chain/util-lib";
|
|
4
4
|
import { AddressToNumber, NotifyFun, Pool, ReefSigner, Token } from '../state';
|
|
5
5
|
import { SwapAction } from '../store';
|
|
6
6
|
import { SwapState } from '../store/reducers/swap';
|
|
7
|
+
type Network = network.DexProtocolv2;
|
|
7
8
|
interface UseSwapState {
|
|
8
9
|
address1: string;
|
|
9
10
|
address2: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
type UseTxHistory = [TokenTransfer[], boolean];
|
|
1
|
+
import { tokenUtil } from '@reef-chain/util-lib';
|
|
2
|
+
type UseTxHistory = [tokenUtil.TokenTransfer[], boolean];
|
|
3
3
|
export declare const useTxHistory: () => UseTxHistory;
|
|
4
4
|
export {};
|