@reef-chain/react-lib 2.4.1 → 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.
@@ -1,7 +1,6 @@
1
1
  import { BigNumber } from 'ethers';
2
2
  import { BigNumber as BN } from 'bignumber.js';
3
3
  import { TokenPrices } from './pool';
4
- import { NFT } from './nft';
5
4
  export declare enum ContractType {
6
5
  ERC20 = "ERC20",
7
6
  ERC721 = "ERC721",
@@ -39,20 +38,6 @@ export interface NFTMetadata {
39
38
  name?: string;
40
39
  mimetype?: string;
41
40
  }
42
- export interface TransferExtrinsic {
43
- blockId: string;
44
- index: number;
45
- hash: string;
46
- }
47
- export interface TokenTransfer {
48
- from: string;
49
- to: string;
50
- inbound: boolean;
51
- timestamp: number;
52
- token: Token | NFT;
53
- extrinsic: TransferExtrinsic;
54
- url: string;
55
- }
56
41
  export declare const defaultTokenState: (index?: number) => TokenState;
57
42
  export declare const createEmptyToken: () => Token;
58
43
  export declare const createEmptyTokenWithAmount: (isEmpty?: boolean) => TokenWithAmount;
@@ -1,8 +1,9 @@
1
1
  import { Provider } from "@reef-chain/evm-provider";
2
2
  import { BigNumber } from "ethers";
3
- import type { Network } from "@reef-chain/util-lib/dist/network";
3
+ import { network as nw } from "@reef-chain/util-lib";
4
4
  import { ReefSigner } from "../state";
5
5
  export type TxStatusHandler = (status: TxStatusUpdate) => void;
6
+ type Network = nw.Network;
6
7
  export declare enum TX_STATUS_ERROR_CODE {
7
8
  ERROR_MIN_BALANCE_AFTER_TX = 0,
8
9
  ERROR_BALANCE_TOO_LOW = 1,
@@ -36,3 +37,4 @@ export declare const getTransferUrl: (extrinsic: {
36
37
  index: string;
37
38
  }, network?: Network) => string;
38
39
  export declare const getContractUrl: (address: string, network?: Network) => string;
40
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reef-chain/react-lib",
3
- "version": "2.4.1",
3
+ "version": "2.5.0",
4
4
  "description": "Reef React Library",
5
5
  "author": "Reef chain",
6
6
  "license": "MIT",
@@ -33,12 +33,12 @@
33
33
  "@polkadot/react-identicon": "^0.86.4",
34
34
  "@reef-chain/evm-provider": "^2.0.3",
35
35
  "@reef-chain/ui-kit": "^1.1.6",
36
- "@reef-chain/util-lib": "^2.3.4",
36
+ "@reef-chain/util-lib": "^2.4.2",
37
37
  "@reef-defi/extension-base": "^1.0.14",
38
38
  "@reef-defi/extension-dapp": "^1.0.14",
39
39
  "@reef-defi/extension-inject": "^1.0.14",
40
40
  "@types/react-router-dom": "^5.3.0",
41
- "axios": "^0.21.4",
41
+ "axios": "^1.6.5",
42
42
  "bignumber.js": "^9.0.2",
43
43
  "bootstrap": "^5.1.1",
44
44
  "eslint-config-prettier": "^9.1.0",