@reef-chain/react-lib 2.6.4 → 2.6.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.
@@ -0,0 +1,176 @@
1
+ /// <reference types="react-localization" />
2
+ export declare const localizedStrings: import("react-localization").LocalizedStrings<{
3
+ bonds: string;
4
+ can_not_retrieve: string;
5
+ fiat_validity_error: string;
6
+ error_occured_while_authorizing: string;
7
+ error_occured_while_creating_a_trade: string;
8
+ buy_reef_tokens: string;
9
+ get_reef_tokens: string;
10
+ confirm_your_token: string;
11
+ create_token: string;
12
+ token_name: string;
13
+ token_symbol: string;
14
+ initial_supply: string;
15
+ burnable: string;
16
+ mintable: string;
17
+ token_logo: string;
18
+ logo: string;
19
+ view_in_explorer: string;
20
+ create_a_pool: string;
21
+ error_creating_token: string;
22
+ return_to_creator: string;
23
+ token_preview: string;
24
+ create_own_token: string;
25
+ create_your_token: string;
26
+ deploying_token: string;
27
+ sending_token_contract: string;
28
+ deploying_contract_failed: string;
29
+ verifying_deployed_token: string;
30
+ smart_contract_bytecode_validated: string;
31
+ token_created: string;
32
+ existing_tokens: string;
33
+ be_destroyed: string;
34
+ new_tokens: string;
35
+ be_created: string;
36
+ my_token: string;
37
+ token_icon: string;
38
+ open_explorer: string;
39
+ no_bonds_available: string;
40
+ no_pool_data: string;
41
+ create_your_account: string;
42
+ use_reef_chain_extension: string;
43
+ app_uses_browser_extension: string;
44
+ please_install_extension: string;
45
+ this_browser_extension: string;
46
+ download_for_chrome: string;
47
+ download_for_firefox: string;
48
+ open_source: string;
49
+ github: string;
50
+ create_pool: string;
51
+ tradingview_lightweight: string;
52
+ select_pool: string;
53
+ transactions: string;
54
+ show_transactions: string;
55
+ type: string;
56
+ amount: string;
57
+ account: string;
58
+ time: string;
59
+ total_supply: string;
60
+ pools: string;
61
+ pair: string;
62
+ tvl: string;
63
+ vol: string;
64
+ vol_percentage: string;
65
+ stake: string;
66
+ unstake: string;
67
+ search: string;
68
+ yes: string;
69
+ no: string;
70
+ not: string;
71
+ can: string;
72
+ generated: string;
73
+ custom: string;
74
+ token_symbol_name: string;
75
+ activity: string;
76
+ no_recent_transfer: string;
77
+ sent: string;
78
+ received: string;
79
+ send: string;
80
+ swap: string;
81
+ create_token_db: string;
82
+ tokens_pill: string;
83
+ nfts: string;
84
+ dashboard: string;
85
+ creator: string;
86
+ balance: string;
87
+ get_nfts_on_sqwid: string;
88
+ does_not_hold: string;
89
+ } | {
90
+ bonds: string;
91
+ can_not_retrieve: string;
92
+ fiat_validity_error: string;
93
+ error_occured_while_authorizing: string;
94
+ error_occured_while_creating_a_trade: string;
95
+ buy_reef_tokens: string;
96
+ get_reef_tokens: string;
97
+ confirm_your_token: string;
98
+ create_token: string;
99
+ token_name: string;
100
+ token_symbol: string;
101
+ initial_supply: string;
102
+ burnable: string;
103
+ mintable: string;
104
+ token_logo: string;
105
+ logo: string;
106
+ view_in_explorer: string;
107
+ create_a_pool: string;
108
+ error_creating_token: string;
109
+ return_to_creator: string;
110
+ token_preview: string;
111
+ create_own_token: string;
112
+ create_your_token: string;
113
+ deploying_token: string;
114
+ sending_token_contract: string;
115
+ deploying_contract_failed: string;
116
+ verifying_deployed_token: string;
117
+ smart_contract_bytecode_validated: string;
118
+ token_created: string;
119
+ existing_tokens: string;
120
+ be_destroyed: string;
121
+ new_tokens: string;
122
+ be_created: string;
123
+ my_token: string;
124
+ token_icon: string;
125
+ open_explorer: string;
126
+ no_bonds_available: string;
127
+ no_pool_data: string;
128
+ create_your_account: string;
129
+ use_reef_chain_extension: string;
130
+ app_uses_browser_extension: string;
131
+ please_install_extension: string;
132
+ this_browser_extension: string;
133
+ download_for_chrome: string;
134
+ download_for_firefox: string;
135
+ open_source: string;
136
+ github: string;
137
+ create_pool: string;
138
+ tradingview_lightweight: string;
139
+ select_pool: string;
140
+ transactions: string;
141
+ show_transactions: string;
142
+ type: string;
143
+ amount: string;
144
+ account: string;
145
+ time: string;
146
+ total_supply: string;
147
+ pools: string;
148
+ pair: string;
149
+ tvl: string;
150
+ vol: string;
151
+ vol_percentage: string;
152
+ stake: string;
153
+ unstake: string;
154
+ search: string;
155
+ yes: string;
156
+ no: string;
157
+ not: string;
158
+ can: string;
159
+ generated: string;
160
+ custom: string;
161
+ token_symbol_name: string;
162
+ activity: string;
163
+ no_recent_transfer: string;
164
+ sent: string;
165
+ received: string;
166
+ send: string;
167
+ swap: string;
168
+ create_token_db: string;
169
+ tokens_pill: string;
170
+ nfts: string;
171
+ dashboard: string;
172
+ creator: string;
173
+ balance: string;
174
+ get_nfts_on_sqwid: string;
175
+ does_not_hold: string;
176
+ }>;
@@ -0,0 +1,4 @@
1
+ import { Token } from '@reef-chain/util-lib/dist/dts/token';
2
+ export declare const formatHumanAmount: (value?: string) => string;
3
+ export declare const displayBalance: (value: string | number) => string;
4
+ export declare const displayBalanceFromToken: (token: Token) => string;
@@ -8,5 +8,4 @@ export declare const calculateBalanceValue: ({ price, balance, }: {
8
8
  price: DataWithProgress<number>;
9
9
  balance: BigNumber;
10
10
  } | TokenWithAmount) => DataWithProgress<number>;
11
- export declare const toCurrencyFormat: (value: number, options?: {}) => string;
12
11
  export declare const normalize: (amount: string | number, decimals: number) => BN;
@@ -1,5 +1,8 @@
1
1
  import { BigNumber } from 'ethers';
2
+ import { Notify } from '../state';
2
3
  export type Optional<T, K extends keyof T> = Omit<T, K> & Partial<Pick<T, K>>;
4
+ export declare const notify: (message: string, type?: Notify) => void;
5
+ export declare const toCurrencyFormat: (value: number, options?: Intl.NumberFormatOptions) => string;
3
6
  export declare const REEF_ADDRESS = "0x0000000000000000000000000000000001000000";
4
7
  export declare const EMPTY_ADDRESS = "0x";
5
8
  export declare const REEF_ADDRESS_SPECIFIC_STRING = "(ONLY for Reef chain!)";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reef-chain/react-lib",
3
- "version": "2.6.4",
3
+ "version": "2.6.5",
4
4
  "description": "Reef React Library",
5
5
  "author": "Reef chain",
6
6
  "license": "MIT",
@@ -43,6 +43,7 @@
43
43
  "process": "^0.11.10",
44
44
  "react-copy-to-clipboard": "^5.0.4",
45
45
  "react-router-dom": "^5.3.0",
46
+ "react-toastify": "^10.0.5",
46
47
  "react-tooltip": "^4.2.21",
47
48
  "rxjs": "^7.5.4"
48
49
  },