@ape.swap/bonds-sdk 1.0.78-2.test.28 → 1.0.78-2.test.30
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/TokenSelectorModal/TokenRow.d.ts +8 -0
- package/dist/components/TokenSelectorModal/TokenRow.js +18 -0
- package/dist/components/TokenSelectorModal/index.d.ts +11 -0
- package/dist/components/TokenSelectorModal/index.js +56 -0
- package/dist/components/TokenSelectorPanel/index.d.ts +16 -0
- package/dist/components/TokenSelectorPanel/index.js +36 -0
- package/dist/components/uikit-sdk/TokenImage/index.d.ts +3 -2
- package/dist/components/uikit-sdk/TokenImage/index.js +27 -4
- package/dist/config/abi/price-getter-linea.json +1448 -0
- package/dist/config/abi/price-getter.json +1309 -0
- package/dist/config/constants/queryKeys.d.ts +4 -1
- package/dist/config/constants/queryKeys.js +24 -1
- package/dist/config/constants/tokens.d.ts +3 -6
- package/dist/config/constants/tokens.js +64 -452
- package/dist/config/constants/zapInputTokens.d.ts +2 -0
- package/dist/config/constants/zapInputTokens.js +356 -0
- package/dist/hooks/useTokenFromZapList.d.ts +3 -0
- package/dist/hooks/useTokenFromZapList.js +10 -0
- package/dist/providers/index.d.ts +0 -3
- package/dist/providers/index.js +6 -0
- package/dist/scss/BondModal.scss +215 -195
- package/dist/state/allowance/useAllowance.d.ts +11 -0
- package/dist/state/allowance/useAllowance.js +148 -0
- package/dist/state/balance/useCurrencyBalance.d.ts +4 -0
- package/dist/state/balance/useCurrencyBalance.js +80 -0
- package/dist/state/price/useCurrencyPrice.d.ts +19 -0
- package/dist/state/price/useCurrencyPrice.js +397 -0
- package/dist/state/zap/getChainParam.d.ts +12 -0
- package/dist/state/zap/getChainParam.js +34 -0
- package/dist/state/zap/useSoulZapBondQuote.d.ts +4 -0
- package/dist/state/zap/useSoulZapBondQuote.js +177 -0
- package/dist/state/zap/useSoulZapTokenQuote.d.ts +3 -0
- package/dist/state/zap/useSoulZapTokenQuote.js +167 -0
- package/dist/utils/getNativeTicker.d.ts +3 -0
- package/dist/utils/getNativeTicker.js +8 -0
- package/dist/views/BondModal/BondModal.js +2 -2
- package/dist/views/Bonds/Bonds.d.ts +1 -1
- package/dist/views/Bonds/index.d.ts +4 -0
- package/dist/views/Bonds/index.js +18 -0
- package/dist/views/ZapModal/index.d.ts +14 -0
- package/dist/views/ZapModal/index.js +150 -0
- package/dist/views/ZapModal/styles.d.ts +2 -0
- package/dist/views/ZapModal/styles.js +35 -0
- package/package.json +3 -1
package/dist/scss/BondModal.scss
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
.modal-backdrop {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
2
|
+
position: fixed;
|
|
3
|
+
top: 0;
|
|
4
|
+
left: 0;
|
|
5
|
+
width: 100%;
|
|
6
|
+
height: 100%;
|
|
7
|
+
background-color: rgba(66, 66, 66, 0.5);
|
|
8
|
+
display: flex;
|
|
9
|
+
justify-content: center;
|
|
10
|
+
align-items: center;
|
|
11
|
+
z-index: 100;
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
.modal-content {
|
|
@@ -27,73 +27,73 @@
|
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
.modal-header {
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
30
|
+
display: flex;
|
|
31
|
+
justify-content: end;
|
|
32
|
+
align-items: center;
|
|
33
|
+
padding: 5px;
|
|
34
34
|
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
35
|
+
.svg-close {
|
|
36
|
+
height: 12px;
|
|
37
|
+
width: 12px;
|
|
38
|
+
cursor: pointer;
|
|
39
|
+
}
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
.modaltable-container {
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
43
|
+
width: 100%;
|
|
44
|
+
display: flex;
|
|
45
|
+
flex-direction: column;
|
|
46
|
+
padding-left: 10px;
|
|
47
|
+
padding-right: 10px;
|
|
48
|
+
padding-bottom: 10px;
|
|
49
49
|
}
|
|
50
50
|
|
|
51
51
|
.modaltable-container.title-container {
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
52
|
+
font-weight: bold;
|
|
53
|
+
font-size: 1.5rem;
|
|
54
|
+
display: flex;
|
|
55
|
+
flex-direction: row;
|
|
56
|
+
align-items: center;
|
|
57
|
+
padding-top: 5px;
|
|
58
|
+
padding-bottom: 5px;
|
|
59
59
|
}
|
|
60
60
|
|
|
61
61
|
.title-container.bondicon {
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
62
|
+
display: flex;
|
|
63
|
+
flex-direction: row;
|
|
64
|
+
align-items: center;
|
|
65
65
|
}
|
|
66
66
|
|
|
67
67
|
.icon-container {
|
|
68
|
-
|
|
69
|
-
|
|
68
|
+
position: relative;
|
|
69
|
+
display: inline-block;
|
|
70
70
|
}
|
|
71
71
|
|
|
72
72
|
.icon-container svg {
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
73
|
+
position: absolute;
|
|
74
|
+
top: -8px;
|
|
75
|
+
right: -5px;
|
|
76
|
+
z-index: 1;
|
|
77
77
|
}
|
|
78
78
|
|
|
79
79
|
.icon-container img {
|
|
80
|
-
|
|
80
|
+
display: block;
|
|
81
81
|
}
|
|
82
82
|
|
|
83
83
|
.icon-container-small {
|
|
84
|
-
|
|
85
|
-
|
|
84
|
+
position: relative;
|
|
85
|
+
display: inline-block;
|
|
86
86
|
}
|
|
87
87
|
|
|
88
88
|
.icon-container-small svg {
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
89
|
+
position: absolute;
|
|
90
|
+
top: -5px;
|
|
91
|
+
right: -4px;
|
|
92
|
+
z-index: 1;
|
|
93
93
|
}
|
|
94
94
|
|
|
95
95
|
.icon-container-small img {
|
|
96
|
-
|
|
96
|
+
display: block;
|
|
97
97
|
}
|
|
98
98
|
|
|
99
99
|
.title-container.bondname {
|
|
@@ -111,227 +111,227 @@
|
|
|
111
111
|
}
|
|
112
112
|
|
|
113
113
|
.title-container.price-container {
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
114
|
+
display: flex;
|
|
115
|
+
flex-direction: column;
|
|
116
|
+
padding-left: 10px;
|
|
117
117
|
}
|
|
118
118
|
|
|
119
119
|
|
|
120
120
|
.price-container.price {
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
121
|
+
font-size: 14px;
|
|
122
|
+
color: var(--theme-ui-colors-gray);
|
|
123
|
+
text-decoration: line-through;
|
|
124
124
|
}
|
|
125
125
|
|
|
126
126
|
.price-container.discounted {
|
|
127
|
-
|
|
127
|
+
display: flex;
|
|
128
128
|
}
|
|
129
129
|
|
|
130
130
|
.title-container.tokentags {
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
131
|
+
display: flex;
|
|
132
|
+
align-items: center;
|
|
133
|
+
padding-left: 10px;
|
|
134
134
|
}
|
|
135
135
|
|
|
136
136
|
.modaltable-container.description-container {
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
137
|
+
display: flex;
|
|
138
|
+
align-items: start;
|
|
139
|
+
padding-top: 10px;
|
|
140
|
+
padding-bottom: 10px;
|
|
141
|
+
font-weight: normal;
|
|
142
142
|
}
|
|
143
143
|
|
|
144
144
|
.modaltable-container.blocks-container {
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
145
|
+
display: flex;
|
|
146
|
+
flex-direction: row;
|
|
147
|
+
align-items: center;
|
|
148
|
+
width: 100%;
|
|
149
|
+
justify-content: space-around;
|
|
150
|
+
margin-top: 5px;
|
|
151
151
|
}
|
|
152
152
|
|
|
153
153
|
.modal-block {
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
154
|
+
min-width: 0px;
|
|
155
|
+
display: flex;
|
|
156
|
+
flex-direction: column;
|
|
157
|
+
align-items: center;
|
|
158
|
+
background: var(--theme-ui-colors-white3);
|
|
159
|
+
font-weight: 900;
|
|
160
|
+
font-size: 16px;
|
|
161
|
+
border-radius: 10px;
|
|
162
|
+
height: 90%;
|
|
163
|
+
padding: 10px;
|
|
164
164
|
}
|
|
165
165
|
|
|
166
166
|
.block-header {
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
167
|
+
color: white;
|
|
168
|
+
font-weight: bold;
|
|
169
|
+
font-size: 12px;
|
|
170
|
+
padding-bottom: 10px;
|
|
171
171
|
}
|
|
172
172
|
|
|
173
173
|
.header-icon {
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
174
|
+
padding-left: 5px;
|
|
175
|
+
align-items: start;
|
|
176
|
+
cursor: pointer;
|
|
177
177
|
}
|
|
178
178
|
|
|
179
179
|
.block-content {
|
|
180
|
-
|
|
181
|
-
|
|
180
|
+
align-items: center;
|
|
181
|
+
padding-bottom: 10px;
|
|
182
182
|
}
|
|
183
183
|
|
|
184
184
|
.modal-block.block-discount {
|
|
185
|
-
|
|
186
|
-
|
|
185
|
+
margin: 0px 10px 0px 0px;
|
|
186
|
+
width: 350px;
|
|
187
187
|
}
|
|
188
188
|
|
|
189
189
|
.discount-positive {
|
|
190
|
-
|
|
190
|
+
color: #38A611;
|
|
191
191
|
}
|
|
192
192
|
|
|
193
193
|
.discount-negative {
|
|
194
|
-
|
|
194
|
+
color: #DF4141;
|
|
195
195
|
}
|
|
196
196
|
|
|
197
197
|
.modal-block.block-arr {
|
|
198
|
-
|
|
199
|
-
|
|
198
|
+
margin: 0px 10px 0px 0px;
|
|
199
|
+
width: 350px;
|
|
200
200
|
}
|
|
201
201
|
|
|
202
202
|
.modal-block.block-term {
|
|
203
|
-
|
|
204
|
-
|
|
203
|
+
margin: 0px 10px 0px 0px;
|
|
204
|
+
width: 350px;
|
|
205
205
|
}
|
|
206
206
|
|
|
207
207
|
.modal-block.block-maxbuy {
|
|
208
|
-
|
|
208
|
+
width: 350px;
|
|
209
209
|
}
|
|
210
210
|
|
|
211
211
|
.modaltable-container.text-container {
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
212
|
+
display: flex;
|
|
213
|
+
flex-direction: column;
|
|
214
|
+
justify-content: center;
|
|
215
|
+
font-size: 12px;
|
|
216
216
|
}
|
|
217
217
|
|
|
218
218
|
.text-container.row {
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
219
|
+
padding-top: 2px;
|
|
220
|
+
padding-bottom: 2px;
|
|
221
|
+
display: flex;
|
|
222
|
+
flex-direction: row;
|
|
223
|
+
justify-content: space-between;
|
|
224
224
|
}
|
|
225
225
|
|
|
226
226
|
.row-container {
|
|
227
|
-
|
|
227
|
+
display: flex;
|
|
228
228
|
}
|
|
229
229
|
|
|
230
230
|
.row-container.spend {
|
|
231
|
-
|
|
231
|
+
display: flex;
|
|
232
232
|
}
|
|
233
233
|
|
|
234
234
|
.row-container.spend-val {
|
|
235
|
-
|
|
235
|
+
display: flex;
|
|
236
236
|
}
|
|
237
237
|
|
|
238
238
|
.row-container.premium {
|
|
239
|
-
|
|
239
|
+
display: flex;
|
|
240
240
|
}
|
|
241
241
|
|
|
242
242
|
.row-container.premium-icon {
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
243
|
+
padding-left: 5px;
|
|
244
|
+
align-items: start;
|
|
245
|
+
cursor: pointer;
|
|
246
246
|
}
|
|
247
247
|
|
|
248
248
|
.row-container.premium-val {
|
|
249
|
-
|
|
249
|
+
display: flex;
|
|
250
250
|
}
|
|
251
251
|
|
|
252
252
|
.premium-positive {
|
|
253
|
-
|
|
253
|
+
color: #38A611;
|
|
254
254
|
}
|
|
255
255
|
|
|
256
256
|
.premium-negative {
|
|
257
|
-
|
|
257
|
+
color: #DF4141;
|
|
258
258
|
}
|
|
259
259
|
|
|
260
260
|
.row-container.get {
|
|
261
|
-
|
|
261
|
+
display: flex;
|
|
262
262
|
}
|
|
263
263
|
|
|
264
264
|
.row-container.get-val {
|
|
265
|
-
|
|
265
|
+
display: flex;
|
|
266
266
|
}
|
|
267
267
|
|
|
268
268
|
.modaltable-container.buy-container {
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
269
|
+
display: flex;
|
|
270
|
+
flex-direction: column;
|
|
271
|
+
background: var(--theme-ui-colors-white3);
|
|
272
|
+
border-radius: 10px;
|
|
273
|
+
min-height: 100px;
|
|
274
|
+
padding: 10px;
|
|
275
275
|
}
|
|
276
276
|
|
|
277
277
|
.input-container.inputrow {
|
|
278
|
-
|
|
278
|
+
flex-direction: row;
|
|
279
279
|
}
|
|
280
280
|
|
|
281
281
|
.input-container.balancerow {
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
282
|
+
flex-direction: row;
|
|
283
|
+
align-items: center;
|
|
284
|
+
justify-content: space-between;
|
|
285
285
|
}
|
|
286
286
|
|
|
287
287
|
.balancerow.text {
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
288
|
+
opacity: 0.8;
|
|
289
|
+
align-items: center;
|
|
290
|
+
font-size: 12px;
|
|
291
291
|
}
|
|
292
292
|
|
|
293
293
|
.balancerow.max {
|
|
294
|
+
align-items: center;
|
|
295
|
+
cursor: pointer;
|
|
296
|
+
|
|
297
|
+
.max-button {
|
|
298
|
+
background: var(--theme-ui-colors-primaryButton);
|
|
299
|
+
height: 22px;
|
|
300
|
+
padding-left: 8px;
|
|
301
|
+
padding-right: 8px;
|
|
302
|
+
cursor: 'pointer';
|
|
303
|
+
font-size: 12px;
|
|
304
|
+
font-weight: 600;
|
|
305
|
+
border-radius: small;
|
|
306
|
+
margin-left: 10px;
|
|
307
|
+
transition: 'all .3s linear';
|
|
308
|
+
display: flex;
|
|
294
309
|
align-items: center;
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
height: 22px;
|
|
300
|
-
padding-left: 8px;
|
|
301
|
-
padding-right: 8px;
|
|
302
|
-
cursor: 'pointer';
|
|
303
|
-
font-size: 12px;
|
|
304
|
-
font-weight: 600;
|
|
305
|
-
border-radius: small;
|
|
306
|
-
margin-left: 10px;
|
|
307
|
-
transition: 'all .3s linear';
|
|
308
|
-
display: flex;
|
|
309
|
-
align-items: center;
|
|
310
|
-
justify-content: center;
|
|
311
|
-
|
|
312
|
-
&:active {
|
|
313
|
-
transform: scale(0.9);
|
|
314
|
-
}
|
|
310
|
+
justify-content: center;
|
|
311
|
+
|
|
312
|
+
&:active {
|
|
313
|
+
transform: scale(0.9);
|
|
315
314
|
}
|
|
315
|
+
}
|
|
316
316
|
}
|
|
317
317
|
|
|
318
318
|
.input-container.input {
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
319
|
+
background-color: transparent;
|
|
320
|
+
border-radius: 10px;
|
|
321
|
+
border: medium;
|
|
322
|
+
padding-right: 10px;
|
|
323
|
+
width: 80%;
|
|
324
|
+
height: 50px;
|
|
325
|
+
font-size: 22px;
|
|
326
326
|
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
327
|
+
Input {
|
|
328
|
+
border: none;
|
|
329
|
+
display: inline-block;
|
|
330
330
|
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
}
|
|
331
|
+
&:focus {
|
|
332
|
+
outline: none;
|
|
334
333
|
}
|
|
334
|
+
}
|
|
335
335
|
}
|
|
336
336
|
|
|
337
337
|
.input-container.token {
|
|
@@ -339,48 +339,48 @@
|
|
|
339
339
|
align-items: center;
|
|
340
340
|
font-size: 12px;
|
|
341
341
|
font-weight: bold;
|
|
342
|
-
background
|
|
342
|
+
background: var(--theme-ui-colors-white4);
|
|
343
343
|
border-radius: 10px;
|
|
344
344
|
position: relative;
|
|
345
345
|
width: 190px;
|
|
346
346
|
height: 40px;
|
|
347
|
-
justify-content:
|
|
348
|
-
cursor:
|
|
347
|
+
justify-content: space-between;
|
|
348
|
+
cursor: pointer;
|
|
349
349
|
}
|
|
350
350
|
|
|
351
351
|
.modaltable-container.button-container {
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
352
|
+
width: 100%;
|
|
353
|
+
padding-top: 10px;
|
|
354
|
+
display: flex;
|
|
355
|
+
flex-direction: row;
|
|
356
|
+
justify-content: space-between;
|
|
357
357
|
}
|
|
358
358
|
|
|
359
359
|
.button-container.get {
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
360
|
+
justify-content: center;
|
|
361
|
+
align-items: center;
|
|
362
|
+
cursor: pointer;
|
|
363
363
|
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
364
|
+
.action-button {
|
|
365
|
+
width: 275px;
|
|
366
|
+
margin-right: 10px;
|
|
367
|
+
}
|
|
368
368
|
}
|
|
369
369
|
|
|
370
370
|
.button-container.buy {
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
371
|
+
justify-content: center;
|
|
372
|
+
align-items: center;
|
|
373
|
+
cursor: pointer;
|
|
374
374
|
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
375
|
+
.action-button {
|
|
376
|
+
width: 375px;
|
|
377
|
+
margin-left: 10px;
|
|
378
|
+
}
|
|
379
379
|
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
380
|
+
.switch-button {
|
|
381
|
+
width: 375px;
|
|
382
|
+
margin-left: 10px;
|
|
383
|
+
}
|
|
384
384
|
}
|
|
385
385
|
|
|
386
386
|
.modaltable-container.accordion-container {
|
|
@@ -407,13 +407,33 @@
|
|
|
407
407
|
}
|
|
408
408
|
|
|
409
409
|
@keyframes fadein {
|
|
410
|
-
|
|
411
|
-
|
|
410
|
+
from {
|
|
411
|
+
top: 0;
|
|
412
|
+
opacity: 0;
|
|
413
|
+
}
|
|
414
|
+
to {
|
|
415
|
+
top: 50px;
|
|
416
|
+
opacity: 1;
|
|
417
|
+
}
|
|
412
418
|
}
|
|
413
419
|
|
|
414
420
|
@keyframes fadeout {
|
|
415
|
-
|
|
416
|
-
|
|
421
|
+
from {
|
|
422
|
+
top: 50px;
|
|
423
|
+
opacity: 1;
|
|
424
|
+
}
|
|
425
|
+
to {
|
|
426
|
+
top: 0;
|
|
427
|
+
opacity: 0;
|
|
428
|
+
}
|
|
429
|
+
}
|
|
430
|
+
|
|
431
|
+
.button-container.zap {
|
|
432
|
+
width: 100%;
|
|
433
|
+
}
|
|
434
|
+
|
|
435
|
+
.switch-button.zap {
|
|
436
|
+
width: 100%;
|
|
417
437
|
}
|
|
418
438
|
|
|
419
439
|
.font-small {
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { UseQueryResult } from '@tanstack/react-query';
|
|
2
|
+
import { ChainId, Token } from '@ape.swap/apeswap-lists';
|
|
3
|
+
export declare enum ApprovalState {
|
|
4
|
+
UNKNOWN = "UNKNOWN",
|
|
5
|
+
NOT_APPROVED = "NOT_APPROVED",
|
|
6
|
+
PENDING = "PENDING",
|
|
7
|
+
APPROVED = "APPROVED"
|
|
8
|
+
}
|
|
9
|
+
export default function useAllowance(amount: string, currency: 'NATIVE' | Token | null, spender: string | null, account: string | null, chainId: ChainId | null): UseQueryResult<ApprovalState>;
|
|
10
|
+
export declare const getTokenAllowance: (amount: string, currency: "NATIVE" | Token | null, spender: string | null, account: string | null, chainId: ChainId | null) => Promise<ApprovalState>;
|
|
11
|
+
export declare const useApproval: (amount: string, currency: "NATIVE" | Token | null, spender: string | null, account: string | null, chainId: ChainId | null) => [ApprovalState, () => Promise<null | undefined>];
|