@onepercentio/one-ui 0.15.1 → 0.16.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.
Files changed (37) hide show
  1. package/dist/components/AdaptiveButton/AdaptiveButton.js +2 -1
  2. package/dist/components/AdaptiveButton/AdaptiveButton.js.map +1 -1
  3. package/dist/components/AdaptiveButton/AdaptiveButton.module.scss +7 -0
  4. package/dist/components/AdaptiveContainer/AdaptiveContainer.js +1 -1
  5. package/dist/components/AdaptiveContainer/AdaptiveContainer.js.map +1 -1
  6. package/dist/components/AdaptiveContainer/AdaptiveContainer.module.scss +0 -8
  7. package/dist/components/Loader/Loader.module.scss +1 -1
  8. package/dist/components/OrderableList/OrderableList.js +12 -1
  9. package/dist/components/OrderableList/OrderableList.js.map +1 -1
  10. package/dist/components/Transition/Transition.js +1 -1
  11. package/dist/components/Transition/Transition.js.map +1 -1
  12. package/dist/context/AsyncProcessQueue.d.ts +71 -0
  13. package/dist/context/AsyncProcessQueue.development.d.ts +8 -0
  14. package/dist/context/AsyncProcessQueue.development.js +42 -0
  15. package/dist/context/AsyncProcessQueue.development.js.map +1 -0
  16. package/dist/context/AsyncProcessQueue.js +186 -0
  17. package/dist/context/AsyncProcessQueue.js.map +1 -0
  18. package/dist/hooks/ui/useZoomable.d.ts +6 -0
  19. package/dist/hooks/ui/useZoomable.js +129 -0
  20. package/dist/hooks/ui/useZoomable.js.map +1 -0
  21. package/dist/hooks/ui/useZoomable.module.scss +37 -0
  22. package/dist/hooks/useHero.d.ts +7 -1
  23. package/dist/hooks/useHero.js +39 -13
  24. package/dist/hooks/useHero.js.map +1 -1
  25. package/dist/hooks/useMergeRefs.d.ts +4 -0
  26. package/dist/hooks/useMergeRefs.js +16 -0
  27. package/dist/hooks/useMergeRefs.js.map +1 -1
  28. package/dist/hooks/usePagination.d.ts +11 -1
  29. package/dist/hooks/usePagination.js +8 -1
  30. package/dist/hooks/usePagination.js.map +1 -1
  31. package/dist/utils/ownEvent.d.ts +4 -0
  32. package/dist/utils/ownEvent.js +13 -0
  33. package/dist/utils/ownEvent.js.map +1 -0
  34. package/package.json +1 -1
  35. package/test/models/examples/contract.ts +4 -0
  36. package/test/models/examples/raw_erc.ts +367 -0
  37. package/dist/hooks/useHero.module.scss +0 -5
@@ -0,0 +1,367 @@
1
+
2
+ export interface AbiInput {
3
+ name: string;
4
+ type: string;
5
+ indexed?: boolean;
6
+ components?: AbiInput[];
7
+ internalType?: string;
8
+ }
9
+
10
+ export interface AbiOutput {
11
+ name: string;
12
+ type: string;
13
+ components?: AbiOutput[];
14
+ internalType?: string;
15
+ }
16
+ export type StateMutabilityType = 'pure' | 'view' | 'nonpayable' | 'payable';
17
+
18
+ export type AbiType = 'function' | 'constructor' | 'event' | 'fallback';
19
+ export interface AbiItem {
20
+ anonymous?: boolean;
21
+ constant?: boolean;
22
+ inputs?: AbiInput[];
23
+ name?: string;
24
+ outputs?: AbiOutput[];
25
+ payable?: boolean;
26
+ stateMutability?: StateMutabilityType;
27
+ type: AbiType;
28
+ gas?: number;
29
+ }
30
+ export const RAW_ERC1155ABI = [
31
+ {
32
+ "anonymous": false,
33
+ "inputs": [
34
+ {
35
+ "indexed": true,
36
+ "internalType": "address",
37
+ "name": "account",
38
+ "type": "address"
39
+ },
40
+ {
41
+ "indexed": true,
42
+ "internalType": "address",
43
+ "name": "operator",
44
+ "type": "address"
45
+ },
46
+ {
47
+ "indexed": false,
48
+ "internalType": "bool",
49
+ "name": "approved",
50
+ "type": "bool"
51
+ }
52
+ ],
53
+ "name": "ApprovalForAll",
54
+ "type": "event"
55
+ },
56
+ {
57
+ "anonymous": false,
58
+ "inputs": [
59
+ {
60
+ "indexed": true,
61
+ "internalType": "address",
62
+ "name": "operator",
63
+ "type": "address"
64
+ },
65
+ {
66
+ "indexed": true,
67
+ "internalType": "address",
68
+ "name": "from",
69
+ "type": "address"
70
+ },
71
+ {
72
+ "indexed": true,
73
+ "internalType": "address",
74
+ "name": "to",
75
+ "type": "address"
76
+ },
77
+ {
78
+ "indexed": false,
79
+ "internalType": "uint256[]",
80
+ "name": "ids",
81
+ "type": "uint256[]"
82
+ },
83
+ {
84
+ "indexed": false,
85
+ "internalType": "uint256[]",
86
+ "name": "values",
87
+ "type": "uint256[]"
88
+ }
89
+ ],
90
+ "name": "TransferBatch",
91
+ "type": "event"
92
+ },
93
+ {
94
+ "anonymous": false,
95
+ "inputs": [
96
+ {
97
+ "indexed": true,
98
+ "internalType": "address",
99
+ "name": "operator",
100
+ "type": "address"
101
+ },
102
+ {
103
+ "indexed": true,
104
+ "internalType": "address",
105
+ "name": "from",
106
+ "type": "address"
107
+ },
108
+ {
109
+ "indexed": true,
110
+ "internalType": "address",
111
+ "name": "to",
112
+ "type": "address"
113
+ },
114
+ {
115
+ "indexed": false,
116
+ "internalType": "uint256",
117
+ "name": "id",
118
+ "type": "uint256"
119
+ },
120
+ {
121
+ "indexed": false,
122
+ "internalType": "uint256",
123
+ "name": "value",
124
+ "type": "uint256"
125
+ }
126
+ ],
127
+ "name": "TransferSingle",
128
+ "type": "event"
129
+ },
130
+ {
131
+ "anonymous": false,
132
+ "inputs": [
133
+ {
134
+ "indexed": false,
135
+ "internalType": "string",
136
+ "name": "value",
137
+ "type": "string"
138
+ },
139
+ {
140
+ "indexed": true,
141
+ "internalType": "uint256",
142
+ "name": "id",
143
+ "type": "uint256"
144
+ }
145
+ ],
146
+ "name": "URI",
147
+ "type": "event"
148
+ },
149
+ {
150
+ "inputs": [
151
+ {
152
+ "internalType": "address",
153
+ "name": "account",
154
+ "type": "address"
155
+ },
156
+ {
157
+ "internalType": "uint256",
158
+ "name": "id",
159
+ "type": "uint256"
160
+ }
161
+ ],
162
+ "name": "balanceOf",
163
+ "outputs": [
164
+ {
165
+ "internalType": "uint256",
166
+ "name": "",
167
+ "type": "uint256"
168
+ }
169
+ ],
170
+ "stateMutability": "view",
171
+ "type": "function"
172
+ },
173
+ {
174
+ "inputs": [
175
+ {
176
+ "internalType": "address[]",
177
+ "name": "accounts",
178
+ "type": "address[]"
179
+ },
180
+ {
181
+ "internalType": "uint256[]",
182
+ "name": "ids",
183
+ "type": "uint256[]"
184
+ }
185
+ ],
186
+ "name": "balanceOfBatch",
187
+ "outputs": [
188
+ {
189
+ "internalType": "uint256[]",
190
+ "name": "",
191
+ "type": "uint256[]"
192
+ }
193
+ ],
194
+ "stateMutability": "view",
195
+ "type": "function"
196
+ },
197
+ {
198
+ "inputs": [
199
+ {
200
+ "internalType": "address",
201
+ "name": "account",
202
+ "type": "address"
203
+ },
204
+ {
205
+ "internalType": "address",
206
+ "name": "operator",
207
+ "type": "address"
208
+ }
209
+ ],
210
+ "name": "isApprovedForAll",
211
+ "outputs": [
212
+ {
213
+ "internalType": "bool",
214
+ "name": "",
215
+ "type": "bool"
216
+ }
217
+ ],
218
+ "stateMutability": "view",
219
+ "type": "function"
220
+ },
221
+ {
222
+ "inputs": [
223
+ {
224
+ "internalType": "address",
225
+ "name": "from",
226
+ "type": "address"
227
+ },
228
+ {
229
+ "internalType": "address",
230
+ "name": "to",
231
+ "type": "address"
232
+ },
233
+ {
234
+ "internalType": "uint256[]",
235
+ "name": "ids",
236
+ "type": "uint256[]"
237
+ },
238
+ {
239
+ "internalType": "uint256[]",
240
+ "name": "amounts",
241
+ "type": "uint256[]"
242
+ },
243
+ {
244
+ "internalType": "bytes",
245
+ "name": "data",
246
+ "type": "bytes"
247
+ }
248
+ ],
249
+ "name": "safeBatchTransferFrom",
250
+ "outputs": [],
251
+ "stateMutability": "nonpayable",
252
+ "type": "function"
253
+ },
254
+ {
255
+ "inputs": [
256
+ {
257
+ "internalType": "address",
258
+ "name": "from",
259
+ "type": "address"
260
+ },
261
+ {
262
+ "internalType": "address",
263
+ "name": "to",
264
+ "type": "address"
265
+ },
266
+ {
267
+ "internalType": "uint256",
268
+ "name": "id",
269
+ "type": "uint256"
270
+ },
271
+ {
272
+ "internalType": "uint256",
273
+ "name": "amount",
274
+ "type": "uint256"
275
+ },
276
+ {
277
+ "internalType": "bytes",
278
+ "name": "data",
279
+ "type": "bytes"
280
+ }
281
+ ],
282
+ "name": "safeTransferFrom",
283
+ "outputs": [],
284
+ "stateMutability": "nonpayable",
285
+ "type": "function"
286
+ },
287
+ {
288
+ "inputs": [
289
+ {
290
+ "internalType": "address",
291
+ "name": "operator",
292
+ "type": "address"
293
+ },
294
+ {
295
+ "internalType": "bool",
296
+ "name": "approved",
297
+ "type": "bool"
298
+ }
299
+ ],
300
+ "name": "setApprovalForAll",
301
+ "outputs": [],
302
+ "stateMutability": "nonpayable",
303
+ "type": "function"
304
+ },
305
+ {
306
+ "inputs": [
307
+ {
308
+ "internalType": "bytes4",
309
+ "name": "interfaceId",
310
+ "type": "bytes4"
311
+ }
312
+ ],
313
+ "name": "supportsInterface",
314
+ "outputs": [
315
+ {
316
+ "internalType": "bool",
317
+ "name": "",
318
+ "type": "bool"
319
+ }
320
+ ],
321
+ "stateMutability": "view",
322
+ "type": "function"
323
+ },
324
+ {
325
+ "inputs": [
326
+ {
327
+ "internalType": "uint256",
328
+ "name": "id",
329
+ "type": "uint256"
330
+ }
331
+ ],
332
+ "name": "uri",
333
+ "outputs": [
334
+ {
335
+ "internalType": "string",
336
+ "name": "",
337
+ "type": "string"
338
+ }
339
+ ],
340
+ "stateMutability": "view",
341
+ "type": "function"
342
+ },
343
+ {
344
+ inputs: [
345
+ {
346
+ internalType: 'address',
347
+ name: 'wallet',
348
+ type: 'address',
349
+ },
350
+ ],
351
+ name: 'balancesOf',
352
+ outputs: [
353
+ {
354
+ internalType: 'uint256[]',
355
+ name: 'tokens',
356
+ type: 'uint256[]',
357
+ },
358
+ {
359
+ internalType: 'uint256[]',
360
+ name: 'balances',
361
+ type: 'uint256[]',
362
+ },
363
+ ],
364
+ stateMutability: 'view',
365
+ type: 'function',
366
+ },
367
+ ] as const
@@ -1,5 +0,0 @@
1
- .base {
2
- transition-duration: 10s;
3
- background-color: red;
4
- transition-timing-function: linear;
5
- }