@reef-chain/react-lib 5.0.3 → 5.0.5
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/components/Overlays/OverlayNFT.d.ts +3 -1
- package/dist/components/Overlays/OverlaySend.d.ts +2 -0
- package/dist/components/Overlays/OverlaySendNft.d.ts +3 -1
- package/dist/components/Overlays/OverlaySwap.d.ts +3 -1
- package/dist/components/Transfer/Send.d.ts +3 -1
- package/dist/components/Transfer/TransferComponent.d.ts +3 -1
- package/dist/hooks/useSwapState.d.ts +3 -1
- package/dist/index.js +3 -4
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +3 -4
- package/dist/index.modern.js.map +1 -1
- package/dist/state/token.d.ts +3 -1
- package/dist/utils/tokenUtil.d.ts +3 -1
- package/dist/utils/transactionUtil.d.ts +2 -1
- package/package.json +5 -3
package/dist/state/token.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { BigNumber } from 'ethers';
|
|
2
|
-
import
|
|
2
|
+
import BigNumberJs from "bignumber.js";
|
|
3
|
+
type BN = BigNumberJs;
|
|
3
4
|
import { TokenPrices } from './pool';
|
|
4
5
|
export declare enum ContractType {
|
|
5
6
|
ERC20 = "ERC20",
|
|
@@ -54,3 +55,4 @@ export declare const ensureExistentialReefAmount: (token: TokenWithAmount, reefB
|
|
|
54
55
|
export declare const reefTokenWithAmount: () => TokenWithAmount;
|
|
55
56
|
export declare const getTokenPrice: (address: string, prices: TokenPrices) => BN;
|
|
56
57
|
export declare const isNativeAddress: (toAddress: string) => boolean;
|
|
58
|
+
export {};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { BigNumber } from 'ethers';
|
|
2
|
-
import
|
|
2
|
+
import BigNumberJs from "bignumber.js";
|
|
3
|
+
type BN = BigNumberJs;
|
|
3
4
|
import { DataWithProgress } from './dataWithProgress';
|
|
4
5
|
import { Token, TokenWithAmount } from '../state';
|
|
5
6
|
import { PoolReserves } from '../graphql/pools';
|
|
@@ -9,3 +10,4 @@ export declare const calculateBalanceValue: ({ price, balance, }: {
|
|
|
9
10
|
balance: BigNumber;
|
|
10
11
|
} | TokenWithAmount) => DataWithProgress<number>;
|
|
11
12
|
export declare const normalize: (amount: string | number, decimals: number) => BN;
|
|
13
|
+
export {};
|
|
@@ -2,6 +2,7 @@ import { Provider } from "@reef-chain/evm-provider";
|
|
|
2
2
|
import { BigNumber } from "ethers";
|
|
3
3
|
import { network as nw } from "@reef-chain/util-lib";
|
|
4
4
|
import { ReefSigner } from "../state";
|
|
5
|
+
import { IFormoAnalytics } from "@formo/analytics";
|
|
5
6
|
export type TxStatusHandler = (status: TxStatusUpdate) => void;
|
|
6
7
|
type Network = nw.Network;
|
|
7
8
|
export declare enum TX_STATUS_ERROR_CODE {
|
|
@@ -26,7 +27,7 @@ export interface TxStatusUpdate {
|
|
|
26
27
|
export declare const handleErr: (e: {
|
|
27
28
|
message: string;
|
|
28
29
|
} | string, txIdent: string, txHash: string, txHandler: TxStatusHandler, signer: ReefSigner) => void;
|
|
29
|
-
export declare const nativeTransfer: (amount: string, destinationAddress: string, provider: Provider, signer: ReefSigner) => Promise<void>;
|
|
30
|
+
export declare const nativeTransfer: (amount: string, destinationAddress: string, provider: Provider, signer: ReefSigner, analytics_formo?: IFormoAnalytics) => Promise<void>;
|
|
30
31
|
export declare const sendToNativeAddress: (provider: Provider, signer: ReefSigner, toAmt: BigNumber, to: string, txHandler: TxStatusHandler) => string;
|
|
31
32
|
export declare const getExtrinsicUrl: (extrinsic: {
|
|
32
33
|
id: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@reef-chain/react-lib",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.5",
|
|
4
4
|
"description": "Reef React Library",
|
|
5
5
|
"author": "Reef chain",
|
|
6
6
|
"license": "MIT",
|
|
@@ -27,13 +27,14 @@
|
|
|
27
27
|
"test:watch": "react-scripts test --env=jsdom"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
+
"@formo/analytics": "^1.25.0",
|
|
30
31
|
"@fortawesome/free-regular-svg-icons": "^6.1.0",
|
|
31
32
|
"@fortawesome/free-solid-svg-icons": "^6.1.0",
|
|
32
33
|
"@fortawesome/react-fontawesome": "^0.2.0",
|
|
33
34
|
"@polkadot/react-identicon": "^3.6.6",
|
|
34
35
|
"@reef-chain/evm-provider": "^3.0.0",
|
|
35
36
|
"@reef-chain/ui-kit": "^4.0.0",
|
|
36
|
-
"@reef-chain/util-lib": "^3.0.
|
|
37
|
+
"@reef-chain/util-lib": "^3.0.3",
|
|
37
38
|
"@types/react-router-dom": "^5.3.0",
|
|
38
39
|
"axios": "^1.6.5",
|
|
39
40
|
"bignumber.js": "^9.1.2",
|
|
@@ -78,7 +79,8 @@
|
|
|
78
79
|
"@polkadot/x-randomvalues": "^13.1.1",
|
|
79
80
|
"@polkadot/x-textdecoder": "^13.1.1",
|
|
80
81
|
"@polkadot/x-textencoder": "^13.1.1",
|
|
81
|
-
"@polkadot/x-ws": "^13.1.1"
|
|
82
|
+
"@polkadot/x-ws": "^13.1.1",
|
|
83
|
+
"@reef-chain/evm-provider": "^3.0.0"
|
|
82
84
|
},
|
|
83
85
|
"peerDependencies": {
|
|
84
86
|
"react": "^18.2.0"
|