@reef-chain/react-lib 5.0.3 → 5.0.4
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/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/package.json +4 -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 {};
|
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.4",
|
|
4
4
|
"description": "Reef React Library",
|
|
5
5
|
"author": "Reef chain",
|
|
6
6
|
"license": "MIT",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"@polkadot/react-identicon": "^3.6.6",
|
|
34
34
|
"@reef-chain/evm-provider": "^3.0.0",
|
|
35
35
|
"@reef-chain/ui-kit": "^4.0.0",
|
|
36
|
-
"@reef-chain/util-lib": "^3.0.
|
|
36
|
+
"@reef-chain/util-lib": "^3.0.3",
|
|
37
37
|
"@types/react-router-dom": "^5.3.0",
|
|
38
38
|
"axios": "^1.6.5",
|
|
39
39
|
"bignumber.js": "^9.1.2",
|
|
@@ -78,7 +78,8 @@
|
|
|
78
78
|
"@polkadot/x-randomvalues": "^13.1.1",
|
|
79
79
|
"@polkadot/x-textdecoder": "^13.1.1",
|
|
80
80
|
"@polkadot/x-textencoder": "^13.1.1",
|
|
81
|
-
"@polkadot/x-ws": "^13.1.1"
|
|
81
|
+
"@polkadot/x-ws": "^13.1.1",
|
|
82
|
+
"@reef-chain/evm-provider": "^3.0.0"
|
|
82
83
|
},
|
|
83
84
|
"peerDependencies": {
|
|
84
85
|
"react": "^18.2.0"
|