@0xsequence/marketplace-sdk 0.8.5 → 0.8.7
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/CHANGELOG.md +14 -0
- package/dist/{builder-types-BY6eD6vD.d.ts → builder-types-D5HgAUWR.d.ts} +1 -1
- package/dist/{chunk-WXKV5N4T.js → chunk-35WWD5V6.js} +3 -3
- package/dist/{chunk-BB2PTJHI.js → chunk-5HEZNTSU.js} +2 -2
- package/dist/{chunk-ZSCZLHKX.js → chunk-7FVZD2LL.js} +2 -2
- package/dist/{chunk-EZFCQZHU.js → chunk-A6V7XDY4.js} +2 -2
- package/dist/{chunk-SJU6QZHM.js → chunk-EODKQL6Y.js} +2 -2
- package/dist/{chunk-ALICO7NG.js → chunk-KTT27YUN.js} +4 -3
- package/dist/chunk-KTT27YUN.js.map +1 -0
- package/dist/{chunk-HGKWWZWY.js → chunk-N7E37ENQ.js} +2 -2
- package/dist/{chunk-ZVTG6US2.js → chunk-O6GWM7C3.js} +2 -2
- package/dist/{chunk-LDZZUYG7.js → chunk-Q2DA477S.js} +3 -3
- package/dist/{chunk-SFSFIGHM.js → chunk-Y6AOCO3Q.js} +7 -7
- package/dist/{chunk-KCLMSSPS.js → chunk-YAUZLETY.js} +172 -11
- package/dist/chunk-YAUZLETY.js.map +1 -0
- package/dist/{chunk-BGY4WXER.js → chunk-YEGD7PWE.js} +3 -2
- package/dist/{chunk-BGY4WXER.js.map → chunk-YEGD7PWE.js.map} +1 -1
- package/dist/{create-config-qDML4ZNn.d.ts → create-config-CdooE7aU.d.ts} +1 -1
- package/dist/{index-DtWR0b_l.d.ts → index-ClKHzm0B.d.ts} +1 -1
- package/dist/index.css +168 -33
- package/dist/index.css.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +3 -3
- package/dist/{lowestListing-W7P4EkC3.d.ts → lowestListing-kFyrUGha.d.ts} +1 -1
- package/dist/{marketplace.gen-DS-MmGEB.d.ts → marketplace.gen-BU6T6f0m.d.ts} +4 -3
- package/dist/react/_internal/api/index.d.ts +2 -2
- package/dist/react/_internal/api/index.js +1 -1
- package/dist/react/_internal/databeat/index.d.ts +1 -1
- package/dist/react/_internal/databeat/index.js +9 -9
- package/dist/react/_internal/index.d.ts +5 -5
- package/dist/react/_internal/index.js +2 -2
- package/dist/react/_internal/wagmi/index.d.ts +3 -3
- package/dist/react/_internal/wagmi/index.js +2 -2
- package/dist/react/hooks/index.d.ts +251 -34
- package/dist/react/hooks/index.js +12 -8
- package/dist/react/hooks/options/index.d.ts +3 -3
- package/dist/react/hooks/options/index.js +4 -4
- package/dist/react/index.d.ts +9 -8
- package/dist/react/index.js +16 -12
- package/dist/react/queries/index.d.ts +2 -2
- package/dist/react/queries/index.js +3 -3
- package/dist/react/ssr/index.d.ts +2 -2
- package/dist/react/ssr/index.js +3 -3
- package/dist/react/ui/components/collectible-card/index.d.ts +1 -1
- package/dist/react/ui/components/collectible-card/index.js +12 -12
- package/dist/react/ui/icons/index.js +5 -5
- package/dist/react/ui/index.d.ts +1 -1
- package/dist/react/ui/index.js +12 -12
- package/dist/react/ui/modals/_internal/components/actionModal/index.js +9 -9
- package/dist/{services-BOX67E7W.d.ts → services-9ApY0U-o.d.ts} +1 -1
- package/dist/types/index.d.ts +3 -3
- package/dist/types/index.js +2 -2
- package/dist/{types-CJLhc2VZ.d.ts → types-DsTwmKG-.d.ts} +2 -2
- package/dist/utils/index.d.ts +1 -1
- package/dist/utils/index.js +3 -3
- package/package.json +2 -1
- package/src/react/_internal/api/marketplace.gen.ts +6 -6
- package/src/react/hooks/__tests__/useAutoSelectFeeOption.test.tsx +21 -75
- package/src/react/hooks/__tests__/useCurrencyBalance.test.tsx +4 -25
- package/src/react/hooks/index.ts +1 -0
- package/src/react/hooks/useFilterState.tsx +181 -0
- package/src/react/hooks/useFilters.tsx +24 -0
- package/src/react/ui/modals/_internal/components/switchChainModal/__tests__/SwitchChainModal.test.tsx +38 -58
- package/src/react/ui/modals/_internal/components/switchChainModal/index.tsx +3 -1
- package/src/utils/getMarketplaceDetails.ts +2 -1
- package/tsconfig.tsbuildinfo +1 -1
- package/dist/chunk-ALICO7NG.js.map +0 -1
- package/dist/chunk-KCLMSSPS.js.map +0 -1
- /package/dist/{chunk-WXKV5N4T.js.map → chunk-35WWD5V6.js.map} +0 -0
- /package/dist/{chunk-BB2PTJHI.js.map → chunk-5HEZNTSU.js.map} +0 -0
- /package/dist/{chunk-ZSCZLHKX.js.map → chunk-7FVZD2LL.js.map} +0 -0
- /package/dist/{chunk-EZFCQZHU.js.map → chunk-A6V7XDY4.js.map} +0 -0
- /package/dist/{chunk-SJU6QZHM.js.map → chunk-EODKQL6Y.js.map} +0 -0
- /package/dist/{chunk-HGKWWZWY.js.map → chunk-N7E37ENQ.js.map} +0 -0
- /package/dist/{chunk-ZVTG6US2.js.map → chunk-O6GWM7C3.js.map} +0 -0
- /package/dist/{chunk-LDZZUYG7.js.map → chunk-Q2DA477S.js.map} +0 -0
- /package/dist/{chunk-SFSFIGHM.js.map → chunk-Y6AOCO3Q.js.map} +0 -0
|
@@ -0,0 +1,181 @@
|
|
|
1
|
+
import { useMemo } from 'react';
|
|
2
|
+
|
|
3
|
+
import {
|
|
4
|
+
createSerializer,
|
|
5
|
+
parseAsBoolean,
|
|
6
|
+
parseAsJson,
|
|
7
|
+
parseAsString,
|
|
8
|
+
useQueryState,
|
|
9
|
+
} from 'nuqs';
|
|
10
|
+
import { type PropertyFilter, PropertyType } from '../_internal';
|
|
11
|
+
|
|
12
|
+
interface StringFilterValues {
|
|
13
|
+
type: PropertyType.STRING;
|
|
14
|
+
values: string[];
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
interface IntFilterValues {
|
|
18
|
+
type: PropertyType.INT;
|
|
19
|
+
min: number;
|
|
20
|
+
max: number;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
type FilterValues = StringFilterValues | IntFilterValues;
|
|
24
|
+
|
|
25
|
+
const validateFilters = (value: unknown): PropertyFilter[] => {
|
|
26
|
+
if (!Array.isArray(value)) return [];
|
|
27
|
+
return value.filter(
|
|
28
|
+
(f): f is PropertyFilter =>
|
|
29
|
+
typeof f === 'object' &&
|
|
30
|
+
typeof f.name === 'string' &&
|
|
31
|
+
Object.values(PropertyType).includes(f.type),
|
|
32
|
+
);
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
const filtersParser = parseAsJson(validateFilters).withDefault([]);
|
|
36
|
+
const searchParser = parseAsString.withDefault('');
|
|
37
|
+
const listedOnlyParser = parseAsBoolean.withDefault(false);
|
|
38
|
+
|
|
39
|
+
const serialize = createSerializer(
|
|
40
|
+
{
|
|
41
|
+
filters: filtersParser,
|
|
42
|
+
search: searchParser,
|
|
43
|
+
listedOnly: listedOnlyParser,
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
urlKeys: {
|
|
47
|
+
filters: 'f',
|
|
48
|
+
search: 'q',
|
|
49
|
+
listedOnly: 'l',
|
|
50
|
+
},
|
|
51
|
+
},
|
|
52
|
+
);
|
|
53
|
+
|
|
54
|
+
export function useFilterState() {
|
|
55
|
+
const [filterOptions, setFilterOptions] = useQueryState(
|
|
56
|
+
'filters',
|
|
57
|
+
filtersParser,
|
|
58
|
+
);
|
|
59
|
+
const [searchText, setSearchText] = useQueryState('search', searchParser);
|
|
60
|
+
const [showListedOnly, setShowListedOnly] = useQueryState(
|
|
61
|
+
'listedOnly',
|
|
62
|
+
listedOnlyParser,
|
|
63
|
+
);
|
|
64
|
+
|
|
65
|
+
const helpers = useMemo(
|
|
66
|
+
() => ({
|
|
67
|
+
getFilter: (name: string): PropertyFilter | undefined => {
|
|
68
|
+
return filterOptions?.find((f) => f.name === name);
|
|
69
|
+
},
|
|
70
|
+
|
|
71
|
+
getFilterValues: (name: string): FilterValues | undefined => {
|
|
72
|
+
const filter = filterOptions?.find((f) => f.name === name);
|
|
73
|
+
if (!filter) return undefined;
|
|
74
|
+
|
|
75
|
+
if (filter.type === PropertyType.INT) {
|
|
76
|
+
return {
|
|
77
|
+
type: PropertyType.INT,
|
|
78
|
+
min: filter.min ?? 0,
|
|
79
|
+
max: filter.max ?? 0,
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
return {
|
|
84
|
+
type: PropertyType.STRING,
|
|
85
|
+
values: (filter.values as string[]) ?? [],
|
|
86
|
+
};
|
|
87
|
+
},
|
|
88
|
+
|
|
89
|
+
isFilterActive: (name: string): boolean => {
|
|
90
|
+
return !!filterOptions?.find((f) => f.name === name);
|
|
91
|
+
},
|
|
92
|
+
|
|
93
|
+
isStringValueSelected: (name: string, value: string): boolean => {
|
|
94
|
+
const filter = filterOptions?.find((f) => f.name === name);
|
|
95
|
+
if (!filter || filter.type !== PropertyType.STRING) return false;
|
|
96
|
+
return (filter.values as string[])?.includes(value) ?? false;
|
|
97
|
+
},
|
|
98
|
+
|
|
99
|
+
isIntFilterActive: (name: string): boolean => {
|
|
100
|
+
const filter = filterOptions?.find((f) => f.name === name);
|
|
101
|
+
return !!filter && filter.type === PropertyType.INT;
|
|
102
|
+
},
|
|
103
|
+
|
|
104
|
+
getIntFilterRange: (name: string): [number, number] | undefined => {
|
|
105
|
+
const filter = filterOptions?.find((f) => f.name === name);
|
|
106
|
+
if (!filter || filter.type !== PropertyType.INT) return undefined;
|
|
107
|
+
return [filter.min ?? 0, filter.max ?? 0];
|
|
108
|
+
},
|
|
109
|
+
|
|
110
|
+
deleteFilter: (name: string) => {
|
|
111
|
+
const otherFilters =
|
|
112
|
+
filterOptions?.filter((f) => !(f.name === name)) ?? [];
|
|
113
|
+
setFilterOptions(otherFilters);
|
|
114
|
+
},
|
|
115
|
+
|
|
116
|
+
toggleStringFilterValue: (name: string, value: string) => {
|
|
117
|
+
const otherFilters =
|
|
118
|
+
filterOptions?.filter((f) => !(f.name === name)) ?? [];
|
|
119
|
+
const filter = filterOptions?.find((f) => f.name === name);
|
|
120
|
+
const existingValues =
|
|
121
|
+
filter?.type === PropertyType.STRING
|
|
122
|
+
? ((filter.values as string[]) ?? [])
|
|
123
|
+
: [];
|
|
124
|
+
|
|
125
|
+
if (existingValues.includes(value)) {
|
|
126
|
+
const newValues = existingValues.filter((v) => v !== value);
|
|
127
|
+
if (newValues.length === 0) {
|
|
128
|
+
setFilterOptions(otherFilters);
|
|
129
|
+
return;
|
|
130
|
+
}
|
|
131
|
+
setFilterOptions([
|
|
132
|
+
...otherFilters,
|
|
133
|
+
{ name, type: PropertyType.STRING, values: newValues },
|
|
134
|
+
]);
|
|
135
|
+
} else {
|
|
136
|
+
setFilterOptions([
|
|
137
|
+
...otherFilters,
|
|
138
|
+
{
|
|
139
|
+
name,
|
|
140
|
+
type: PropertyType.STRING,
|
|
141
|
+
values: [...existingValues, value],
|
|
142
|
+
},
|
|
143
|
+
]);
|
|
144
|
+
}
|
|
145
|
+
},
|
|
146
|
+
|
|
147
|
+
setIntFilterValue: (name: string, min: number, max: number) => {
|
|
148
|
+
if (min === max && min === 0) {
|
|
149
|
+
const otherFilters =
|
|
150
|
+
filterOptions?.filter((f) => !(f.name === name)) ?? [];
|
|
151
|
+
setFilterOptions(otherFilters);
|
|
152
|
+
return;
|
|
153
|
+
}
|
|
154
|
+
const otherFilters =
|
|
155
|
+
filterOptions?.filter((f) => !(f.name === name)) ?? [];
|
|
156
|
+
setFilterOptions([
|
|
157
|
+
...otherFilters,
|
|
158
|
+
{ name, type: PropertyType.INT, min, max },
|
|
159
|
+
]);
|
|
160
|
+
},
|
|
161
|
+
|
|
162
|
+
clearAllFilters: () => {
|
|
163
|
+
void setShowListedOnly(false);
|
|
164
|
+
void setFilterOptions([]);
|
|
165
|
+
void setSearchText('');
|
|
166
|
+
},
|
|
167
|
+
}),
|
|
168
|
+
[filterOptions, setFilterOptions, setShowListedOnly, setSearchText],
|
|
169
|
+
);
|
|
170
|
+
|
|
171
|
+
return {
|
|
172
|
+
filterOptions,
|
|
173
|
+
searchText,
|
|
174
|
+
showListedOnly,
|
|
175
|
+
setFilterOptions,
|
|
176
|
+
setSearchText,
|
|
177
|
+
setShowListedOnly,
|
|
178
|
+
...helpers,
|
|
179
|
+
serialize,
|
|
180
|
+
};
|
|
181
|
+
}
|
|
@@ -18,6 +18,7 @@ const UseFiltersSchema = z.object({
|
|
|
18
18
|
collectionAddress: AddressSchema,
|
|
19
19
|
showAllFilters: z.boolean().default(false).optional(),
|
|
20
20
|
query: QueryArgSchema,
|
|
21
|
+
excludePropertyValues: z.boolean().default(false).optional(),
|
|
21
22
|
});
|
|
22
23
|
|
|
23
24
|
export type UseFiltersArgs = z.infer<typeof UseFiltersSchema>;
|
|
@@ -33,6 +34,7 @@ export const fetchFilters = async (args: UseFiltersArgs, config: SdkConfig) => {
|
|
|
33
34
|
chainID: parsedArgs.chainId.toString(),
|
|
34
35
|
contractAddress: parsedArgs.collectionAddress,
|
|
35
36
|
excludeProperties: [], // TODO: We can leverage this for some of the exclusion logic
|
|
37
|
+
excludePropertyValues: parsedArgs.excludePropertyValues,
|
|
36
38
|
})
|
|
37
39
|
.then((resp) => resp.filters);
|
|
38
40
|
|
|
@@ -117,3 +119,25 @@ export const useFilters = (args: UseFiltersArgs) => {
|
|
|
117
119
|
const config = useConfig();
|
|
118
120
|
return useQuery(filtersOptions(args, config));
|
|
119
121
|
};
|
|
122
|
+
|
|
123
|
+
export const useFiltersProgressive = (args: UseFiltersArgs) => {
|
|
124
|
+
const config = useConfig();
|
|
125
|
+
|
|
126
|
+
const namesQuery = useQuery(
|
|
127
|
+
filtersOptions({ ...args, excludePropertyValues: true }, config),
|
|
128
|
+
);
|
|
129
|
+
|
|
130
|
+
const fullQuery = useQuery({
|
|
131
|
+
...filtersOptions(args, config),
|
|
132
|
+
placeholderData: namesQuery.data,
|
|
133
|
+
});
|
|
134
|
+
|
|
135
|
+
const isLoadingNames = namesQuery.isLoading;
|
|
136
|
+
const isFetchingValues = fullQuery.isPlaceholderData && fullQuery.isFetching;
|
|
137
|
+
|
|
138
|
+
return {
|
|
139
|
+
...fullQuery,
|
|
140
|
+
isFetchingValues,
|
|
141
|
+
isLoadingNames,
|
|
142
|
+
};
|
|
143
|
+
};
|
|
@@ -6,19 +6,32 @@ import {
|
|
|
6
6
|
wagmiConfig,
|
|
7
7
|
waitFor,
|
|
8
8
|
} from '@test';
|
|
9
|
-
import { describe, expect, test, vi } from 'vitest';
|
|
10
|
-
import {
|
|
9
|
+
import { beforeEach, describe, expect, test, vi } from 'vitest';
|
|
10
|
+
import { useChainId } from 'wagmi';
|
|
11
11
|
import SwitchChainModal, { useSwitchChainModal } from '../index';
|
|
12
12
|
import { switchChainModal$ } from '../store';
|
|
13
13
|
|
|
14
14
|
const chainToSwitchTo = wagmiConfig.chains[1];
|
|
15
15
|
|
|
16
16
|
describe('SwitchChainModal', () => {
|
|
17
|
+
beforeEach(() => {
|
|
18
|
+
switchChainModal$.state.isSwitching.set(false);
|
|
19
|
+
switchChainModal$.state.chainIdToSwitchTo.set(undefined);
|
|
20
|
+
switchChainModal$.state.onError.set(undefined);
|
|
21
|
+
switchChainModal$.state.onSuccess.set(undefined);
|
|
22
|
+
switchChainModal$.state.onClose.set(undefined);
|
|
23
|
+
});
|
|
24
|
+
|
|
17
25
|
test('opens switch chain modal with correct chain', async () => {
|
|
26
|
+
const { result } = renderHook(() => useSwitchChainModal());
|
|
27
|
+
|
|
28
|
+
result.current.show({ chainIdToSwitchTo: chainToSwitchTo.id });
|
|
18
29
|
render(<SwitchChainModal />);
|
|
19
30
|
|
|
20
|
-
|
|
21
|
-
|
|
31
|
+
await waitFor(() => {
|
|
32
|
+
const titleElement = screen.getByText('Wrong network');
|
|
33
|
+
expect(titleElement).toBeInTheDocument();
|
|
34
|
+
});
|
|
22
35
|
|
|
23
36
|
const titleElement = await screen.findByText('Wrong network');
|
|
24
37
|
expect(titleElement).toBeInTheDocument();
|
|
@@ -35,13 +48,12 @@ describe('SwitchChainModal', () => {
|
|
|
35
48
|
});
|
|
36
49
|
|
|
37
50
|
test('closes switch chain modal using close callback', async () => {
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
const { show, close } = useSwitchChainModal();
|
|
51
|
+
const { result } = renderHook(() => useSwitchChainModal());
|
|
41
52
|
|
|
42
|
-
show({ chainIdToSwitchTo: chainToSwitchTo.id });
|
|
53
|
+
result.current.show({ chainIdToSwitchTo: chainToSwitchTo.id });
|
|
54
|
+
render(<SwitchChainModal />);
|
|
43
55
|
|
|
44
|
-
close();
|
|
56
|
+
result.current.close();
|
|
45
57
|
|
|
46
58
|
const titleElement = screen.queryByText('Wrong network');
|
|
47
59
|
await waitFor(() => {
|
|
@@ -68,66 +80,34 @@ describe('SwitchChainModal', () => {
|
|
|
68
80
|
});
|
|
69
81
|
});
|
|
70
82
|
|
|
71
|
-
test
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
show({ chainIdToSwitchTo: chainToSwitchTo.id });
|
|
76
|
-
|
|
77
|
-
const switchButton = await screen.findByRole('button', {
|
|
78
|
-
name: /switch network/i,
|
|
79
|
-
});
|
|
80
|
-
expect(switchButton).toBeInTheDocument();
|
|
81
|
-
|
|
82
|
-
fireEvent.click(switchButton);
|
|
83
|
+
test('shows spinner while switching chain', async () => {
|
|
84
|
+
switchChainModal$.state.isSwitching.set(true);
|
|
85
|
+
switchChainModal$.state.chainIdToSwitchTo.set(chainToSwitchTo.id);
|
|
83
86
|
|
|
84
|
-
|
|
85
|
-
const spinner = screen.findByTestId('switch-chain-spinner');
|
|
86
|
-
expect(spinner).toBeInTheDocument();
|
|
87
|
-
});
|
|
87
|
+
render(<SwitchChainModal />);
|
|
88
88
|
|
|
89
|
-
const spinner =
|
|
89
|
+
const spinner = screen.getByTestId('switch-chain-spinner');
|
|
90
90
|
expect(spinner).toBeInTheDocument();
|
|
91
|
-
|
|
92
|
-
await waitFor(() => {
|
|
93
|
-
expect(switchChainModal$.state.isSwitching.get()).toBe(false);
|
|
94
|
-
expect(document.querySelector('.spinner')).not.toBeInTheDocument();
|
|
95
|
-
});
|
|
96
91
|
});
|
|
97
92
|
|
|
98
|
-
test
|
|
99
|
-
const
|
|
100
|
-
|
|
101
|
-
const mockConnector = {
|
|
102
|
-
...wagmiConfig.connectors[0],
|
|
103
|
-
features: {
|
|
104
|
-
// @ts-expect-error
|
|
105
|
-
...wagmiConfig.connectors[0].features,
|
|
106
|
-
switchChainError: true,
|
|
107
|
-
},
|
|
108
|
-
};
|
|
109
|
-
const wagmiConfigWithSwitchChainError = {
|
|
110
|
-
...wagmiConfig,
|
|
111
|
-
connectors: [mockConnector],
|
|
112
|
-
} as Config;
|
|
113
|
-
|
|
114
|
-
render(<SwitchChainModal />, {
|
|
115
|
-
wagmiConfig: wagmiConfigWithSwitchChainError,
|
|
116
|
-
});
|
|
93
|
+
test('shows error message when chain switch fails', async () => {
|
|
94
|
+
const mockOnError = vi.fn();
|
|
95
|
+
const { result } = renderHook(() => useSwitchChainModal());
|
|
117
96
|
|
|
118
|
-
|
|
119
|
-
|
|
97
|
+
result.current.show({
|
|
98
|
+
// @ts-expect-error - invalid chain id to trigger error
|
|
99
|
+
chainIdToSwitchTo: 'invalid-chain-id',
|
|
100
|
+
onError: mockOnError,
|
|
101
|
+
});
|
|
102
|
+
render(<SwitchChainModal />);
|
|
120
103
|
|
|
121
|
-
const
|
|
104
|
+
const button = await screen.findByRole('button', {
|
|
122
105
|
name: /switch network/i,
|
|
123
106
|
});
|
|
124
|
-
fireEvent.click(
|
|
107
|
+
fireEvent.click(button);
|
|
125
108
|
|
|
126
109
|
await waitFor(() => {
|
|
127
|
-
|
|
128
|
-
// expect(chainId).not.toBe(chainToSwitchTo.id)
|
|
129
|
-
expect(onError).toHaveBeenCalled();
|
|
130
|
-
expect(switchChainModal$.isOpen.get()).toBe(true);
|
|
110
|
+
expect(mockOnError).toHaveBeenCalledOnce();
|
|
131
111
|
});
|
|
132
112
|
});
|
|
133
113
|
});
|
|
@@ -101,7 +101,9 @@ const SwitchChainModal = observer(() => {
|
|
|
101
101
|
size="sm"
|
|
102
102
|
label={
|
|
103
103
|
isSwitching$.get() ? (
|
|
104
|
-
<
|
|
104
|
+
<div data-testid="switch-chain-spinner">
|
|
105
|
+
<Spinner className="spinner" />
|
|
106
|
+
</div>
|
|
105
107
|
) : (
|
|
106
108
|
'Switch Network'
|
|
107
109
|
)
|
|
@@ -62,6 +62,7 @@ const KIND_TO_MARKETPLACE: Partial<
|
|
|
62
62
|
[MarketplaceKind.looks_rare]: 'looksrare',
|
|
63
63
|
[MarketplaceKind.x2y2]: 'x2y2',
|
|
64
64
|
[MarketplaceKind.blur]: 'blur',
|
|
65
|
+
[MarketplaceKind.magic_eden]: 'magiceden',
|
|
65
66
|
};
|
|
66
67
|
|
|
67
68
|
type MarketplaceDetailsProp = {
|
|
@@ -69,7 +70,7 @@ type MarketplaceDetailsProp = {
|
|
|
69
70
|
kind: MarketplaceKind;
|
|
70
71
|
};
|
|
71
72
|
|
|
72
|
-
// TODO: add
|
|
73
|
+
// TODO: add support for more marketplaces and improve detection of marketplace
|
|
73
74
|
export function getMarketplaceDetails({
|
|
74
75
|
originName,
|
|
75
76
|
kind,
|
package/tsconfig.tsbuildinfo
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"root":["./src/consts.ts","./src/index.ts","./src/react/index.ts","./src/react/provider.tsx","./src/react/__tests__/provider.test.tsx","./src/react/_internal/consts.ts","./src/react/_internal/get-provider.ts","./src/react/_internal/index.ts","./src/react/_internal/logger.ts","./src/react/_internal/types.ts","./src/react/_internal/utils.ts","./src/react/_internal/api/get-query-client.ts","./src/react/_internal/api/index.ts","./src/react/_internal/api/laos-api.ts","./src/react/_internal/api/marketplace-api.ts","./src/react/_internal/api/marketplace.gen.ts","./src/react/_internal/api/query-keys.ts","./src/react/_internal/api/services.ts","./src/react/_internal/api/zod-schema.ts","./src/react/_internal/api/__mocks__/indexer.msw.ts","./src/react/_internal/api/__mocks__/marketplace.msw.ts","./src/react/_internal/api/__mocks__/metadata.msw.ts","./src/react/_internal/databeat/index.ts","./src/react/_internal/databeat/types.ts","./src/react/_internal/wagmi/create-config.ts","./src/react/_internal/wagmi/get-connectors.ts","./src/react/_internal/wagmi/index.ts","./src/react/_internal/wagmi/__tests__/create-config.test.ts","./src/react/_internal/wallet/usewallet.ts","./src/react/_internal/wallet/wallet.ts","./src/react/_internal/wallet/__tests__/wallet.test.ts","./src/react/hooks/index.ts","./src/react/hooks/useautoselectfeeoption.tsx","./src/react/hooks/usebalanceofcollectible.tsx","./src/react/hooks/usecancelorder.tsx","./src/react/hooks/usecanceltransactionsteps.tsx","./src/react/hooks/usecheckoutoptions.tsx","./src/react/hooks/usecollectible.tsx","./src/react/hooks/usecollection.tsx","./src/react/hooks/usecollectionbalancedetails.tsx","./src/react/hooks/usecollectiondetails.tsx","./src/react/hooks/usecollectiondetailspolling.tsx","./src/react/hooks/usecompareprices.tsx","./src/react/hooks/useconfig.tsx","./src/react/hooks/useconvertpricetousd.tsx","./src/react/hooks/usecountlistingsforcollectible.tsx","./src/react/hooks/usecountofcollectables.tsx","./src/react/hooks/usecountoffersforcollectible.tsx","./src/react/hooks/usecurrencies.tsx","./src/react/hooks/usecurrency.tsx","./src/react/hooks/usecurrencybalance.tsx","./src/react/hooks/usefilters.tsx","./src/react/hooks/usefloororder.tsx","./src/react/hooks/usegeneratecanceltransaction.tsx","./src/react/hooks/usegeneratelistingtransaction.tsx","./src/react/hooks/usegenerateoffertransaction.tsx","./src/react/hooks/usegenerateselltransaction.tsx","./src/react/hooks/usegetreceiptfromhash.tsx","./src/react/hooks/usehighestoffer.tsx","./src/react/hooks/uselistbalances.tsx","./src/react/hooks/uselistcollectibleactivities.tsx","./src/react/hooks/uselistcollectibles.tsx","./src/react/hooks/uselistcollectiblespaginated.tsx","./src/react/hooks/uselistcollectionactivities.tsx","./src/react/hooks/uselistcollections.tsx","./src/react/hooks/uselistlistingsforcollectible.tsx","./src/react/hooks/uselistoffersforcollectible.tsx","./src/react/hooks/uselowestlisting.tsx","./src/react/hooks/usemarketplaceconfig.tsx","./src/react/hooks/useroyalty.tsx","./src/react/hooks/usetransfertokens.tsx","./src/react/hooks/__tests__/useautoselectfeeoption.test.tsx","./src/react/hooks/__tests__/usebalanceofcollectible.test.tsx","./src/react/hooks/__tests__/usecancelorder.test.tsx","./src/react/hooks/__tests__/usecanceltransactionsteps.test.tsx","./src/react/hooks/__tests__/usecollectible.test.tsx","./src/react/hooks/__tests__/usecollection.test.tsx","./src/react/hooks/__tests__/usecollectionbalancedetails.test.tsx","./src/react/hooks/__tests__/usecollectiondetails.test.tsx","./src/react/hooks/__tests__/usecollectiondetailspolling.test.tsx","./src/react/hooks/__tests__/usecompareprices.test.tsx","./src/react/hooks/__tests__/useconvertpricetousd.test.tsx","./src/react/hooks/__tests__/usecountlistingsforcollectible.test.tsx","./src/react/hooks/__tests__/usecountofcollectables.test.tsx","./src/react/hooks/__tests__/usecountoffersforcollectible.test.tsx","./src/react/hooks/__tests__/usecurrencies.test.tsx","./src/react/hooks/__tests__/usecurrency.test.tsx","./src/react/hooks/__tests__/usecurrencybalance.test.tsx","./src/react/hooks/__tests__/usefilters.test.tsx","./src/react/hooks/__tests__/usefloororder.test.tsx","./src/react/hooks/__tests__/usegeneratecanceltransaction.test.tsx","./src/react/hooks/__tests__/usegeneratelistingtransaction.test.tsx","./src/react/hooks/__tests__/usegenerateoffertransaction.test.tsx","./src/react/hooks/__tests__/usegenerateselltransaction.test.tsx","./src/react/hooks/__tests__/usehighestoffer.test.tsx","./src/react/hooks/__tests__/uselistbalances.test.tsx","./src/react/hooks/__tests__/uselistcollectibleactivities.test.tsx","./src/react/hooks/__tests__/uselistcollectibles.test.tsx","./src/react/hooks/__tests__/uselistcollectiblespaginated.test.tsx","./src/react/hooks/__tests__/uselistcollectionactivities.test.tsx","./src/react/hooks/__tests__/uselistcollections.test.tsx","./src/react/hooks/__tests__/uselistlistingsforcollectible.test.tsx","./src/react/hooks/__tests__/uselistoffersforcollectible.test.tsx","./src/react/hooks/__tests__/uselowestlisting.test.tsx","./src/react/hooks/__tests__/usemarketplaceconfig.test.tsx","./src/react/hooks/__tests__/useroyalty.test.tsx","./src/react/hooks/options/collectionoptions.ts","./src/react/hooks/options/index.ts","./src/react/hooks/options/marketplaceconfigoptions.ts","./src/react/hooks/options/__mocks__/marketplaceconfig.msw.ts","./src/react/hooks/options/__tests__/marketplaceconfigoptions.test.tsx","./src/react/queries/balanceofcollectible.ts","./src/react/queries/gettokensupplies.ts","./src/react/queries/highestoffer.ts","./src/react/queries/index.ts","./src/react/queries/listbalances.ts","./src/react/queries/listcollectibles.ts","./src/react/ssr/create-ssr-client.ts","./src/react/ssr/index.ts","./src/react/ssr/__tests__/create-ssr-client.test.ts","./src/react/ui/index.ts","./src/react/ui/components/_internals/action-button/actionbutton.tsx","./src/react/ui/components/_internals/action-button/store.ts","./src/react/ui/components/_internals/action-button/types.ts","./src/react/ui/components/_internals/action-button/__tests__/actionbutton.test.tsx","./src/react/ui/components/_internals/action-button/__tests__/actionbuttonbody.test.tsx","./src/react/ui/components/_internals/action-button/components/actionbuttonbody.tsx","./src/react/ui/components/_internals/action-button/components/nonowneractions.tsx","./src/react/ui/components/_internals/action-button/components/owneractions.tsx","./src/react/ui/components/_internals/action-button/hooks/useactionbuttonlogic.ts","./src/react/ui/components/_internals/custom-select/customselect.tsx","./src/react/ui/components/_internals/custom-select/__tests__/customselect.test.tsx","./src/react/ui/components/_internals/pill/pill.tsx","./src/react/ui/components/_internals/pill/__tests__/pill.test.tsx","./src/react/ui/components/collectible-card/collectibleasset.tsx","./src/react/ui/components/collectible-card/collectiblecard.tsx","./src/react/ui/components/collectible-card/footer.tsx","./src/react/ui/components/collectible-card/index.ts","./src/react/ui/components/collectible-card/__tests__/collectiblecard.test.tsx","./src/react/ui/components/marketplace-logos/index.ts","./src/react/ui/components/marketplace-logos/marketplace-logos.tsx","./src/react/ui/icons/bellicon.tsx","./src/react/ui/icons/calendaricon.tsx","./src/react/ui/icons/carticon.tsx","./src/react/ui/icons/infoicon.tsx","./src/react/ui/icons/iconvariants.ts","./src/react/ui/icons/index.ts","./src/react/ui/modals/modal-provider.tsx","./src/react/ui/modals/buymodal/erc1155quantitymodal.tsx","./src/react/ui/modals/buymodal/modal.tsx","./src/react/ui/modals/buymodal/index.tsx","./src/react/ui/modals/buymodal/store.ts","./src/react/ui/modals/buymodal/__tests__/modal.test.tsx","./src/react/ui/modals/buymodal/__tests__/modal1155.test.tsx","./src/react/ui/modals/buymodal/__tests__/store.test.ts","./src/react/ui/modals/buymodal/hooks/usecheckoutoptions.ts","./src/react/ui/modals/buymodal/hooks/usefees.ts","./src/react/ui/modals/buymodal/hooks/useloaddata.ts","./src/react/ui/modals/buymodal/hooks/usepaymentmodalparams.ts","./src/react/ui/modals/buymodal/hooks/__tests__/usecheckoutoptions.test.tsx","./src/react/ui/modals/buymodal/hooks/__tests__/usefees.test.tsx","./src/react/ui/modals/createlistingmodal/modal.tsx","./src/react/ui/modals/createlistingmodal/index.tsx","./src/react/ui/modals/createlistingmodal/store.ts","./src/react/ui/modals/createlistingmodal/__tests__/modal.test.tsx","./src/react/ui/modals/createlistingmodal/hooks/usecreatelisting.tsx","./src/react/ui/modals/createlistingmodal/hooks/usegettokenapproval.ts","./src/react/ui/modals/createlistingmodal/hooks/usetransactionsteps.tsx","./src/react/ui/modals/makeoffermodal/modal.tsx","./src/react/ui/modals/makeoffermodal/index.tsx","./src/react/ui/modals/makeoffermodal/store.ts","./src/react/ui/modals/makeoffermodal/__tests__/modal.test.tsx","./src/react/ui/modals/makeoffermodal/hooks/usegettokenapproval.tsx","./src/react/ui/modals/makeoffermodal/hooks/usemakeoffer.tsx","./src/react/ui/modals/makeoffermodal/hooks/usetransactionsteps.tsx","./src/react/ui/modals/sellmodal/modal.tsx","./src/react/ui/modals/sellmodal/index.tsx","./src/react/ui/modals/sellmodal/store.ts","./src/react/ui/modals/sellmodal/utils.ts","./src/react/ui/modals/sellmodal/__tests__/modal.test.tsx","./src/react/ui/modals/sellmodal/hooks/usegettokenapproval.tsx","./src/react/ui/modals/sellmodal/hooks/usesell.tsx","./src/react/ui/modals/sellmodal/hooks/usetransactionsteps.tsx","./src/react/ui/modals/successfulpurchasemodal/_store.ts","./src/react/ui/modals/successfulpurchasemodal/index.tsx","./src/react/ui/modals/successfulpurchasemodal/__tests__/modal.test.tsx","./src/react/ui/modals/transfermodal/_store.ts","./src/react/ui/modals/transfermodal/index.tsx","./src/react/ui/modals/transfermodal/messages.ts","./src/react/ui/modals/transfermodal/_views/enterwalletaddress/index.tsx","./src/react/ui/modals/transfermodal/_views/enterwalletaddress/usehandletransfer.tsx","./src/react/ui/modals/transfermodal/_views/enterwalletaddress/_components/tokenquantityinput.tsx","./src/react/ui/modals/transfermodal/_views/enterwalletaddress/_components/transferbutton.tsx","./src/react/ui/modals/transfermodal/_views/enterwalletaddress/_components/walletaddressinput.tsx","./src/react/ui/modals/transfermodal/_views/followwalletinstructions/index.tsx","./src/react/ui/modals/_internal/types.ts","./src/react/ui/modals/_internal/components/consts.ts","./src/react/ui/modals/_internal/components/actionmodal/actionmodal.tsx","./src/react/ui/modals/_internal/components/actionmodal/errormodal.tsx","./src/react/ui/modals/_internal/components/actionmodal/loadingmodal.tsx","./src/react/ui/modals/_internal/components/actionmodal/index.ts","./src/react/ui/modals/_internal/components/actionmodal/store.ts","./src/react/ui/modals/_internal/components/alertmessage/index.tsx","./src/react/ui/modals/_internal/components/calendar/index.tsx","./src/react/ui/modals/_internal/components/calendardropdown/index.tsx","./src/react/ui/modals/_internal/components/currencyimage/index.tsx","./src/react/ui/modals/_internal/components/currencyoptionsselect/index.tsx","./src/react/ui/modals/_internal/components/currencyoptionsselect/__tests__/index.test.tsx","./src/react/ui/modals/_internal/components/expirationdateselect/index.tsx","./src/react/ui/modals/_internal/components/floorpricetext/index.tsx","./src/react/ui/modals/_internal/components/priceinput/index.tsx","./src/react/ui/modals/_internal/components/priceinput/types.ts","./src/react/ui/modals/_internal/components/priceinput/__tests__/index.test.tsx","./src/react/ui/modals/_internal/components/quantityinput/index.tsx","./src/react/ui/modals/_internal/components/quantityinput/__tests__/index.test.tsx","./src/react/ui/modals/_internal/components/selectwaasfeeoptions/index.tsx","./src/react/ui/modals/_internal/components/selectwaasfeeoptions/store.ts","./src/react/ui/modals/_internal/components/selectwaasfeeoptions/usewaasfeeoptionmanager.tsx","./src/react/ui/modals/_internal/components/selectwaasfeeoptions/_components/actionbuttons.tsx","./src/react/ui/modals/_internal/components/selectwaasfeeoptions/_components/balanceindicator.tsx","./src/react/ui/modals/_internal/components/switchchainmodal/index.tsx","./src/react/ui/modals/_internal/components/switchchainmodal/store.ts","./src/react/ui/modals/_internal/components/switchchainmodal/__tests__/switchchainmodal.test.tsx","./src/react/ui/modals/_internal/components/timeago/index.tsx","./src/react/ui/modals/_internal/components/tokenpreview/index.tsx","./src/react/ui/modals/_internal/components/transaction-footer/index.tsx","./src/react/ui/modals/_internal/components/transactiondetails/index.tsx","./src/react/ui/modals/_internal/components/transactionheader/index.tsx","./src/react/ui/modals/_internal/components/transactionpreview/consts.ts","./src/react/ui/modals/_internal/components/transactionpreview/index.tsx","./src/react/ui/modals/_internal/components/transactionpreview/usetransactionpreviewtitle.tsx","./src/react/ui/modals/_internal/components/transactionstatusmodal/index.tsx","./src/react/ui/modals/_internal/components/transactionstatusmodal/store.ts","./src/react/ui/modals/_internal/components/transactionstatusmodal/__tests__/transactionstatusmodal.test.tsx","./src/react/ui/modals/_internal/components/transactionstatusmodal/__tests__/utils.test.ts","./src/react/ui/modals/_internal/components/transactionstatusmodal/hooks/usetransactionstatus.ts","./src/react/ui/modals/_internal/components/transactionstatusmodal/util/getformattedtype.ts","./src/react/ui/modals/_internal/components/transactionstatusmodal/util/getmessage.ts","./src/react/ui/modals/_internal/components/transactionstatusmodal/util/gettitle.ts","./src/react/ui/modals/_internal/components/waasfeeoptionsselect/waasfeeoptionsselect.tsx","./src/react/ui/modals/_internal/hooks/useselectwaasfeeoptions.ts","./src/react/ui/modals/_internal/stores/accountmodal.ts","./src/types/api-types.ts","./src/types/builder-types.ts","./src/types/custom.d.ts","./src/types/index.ts","./src/types/messages.ts","./src/types/sdk-config.ts","./src/types/types.ts","./src/types/waas-types.ts","./src/utils/address.ts","./src/utils/cn.ts","./src/utils/date.ts","./src/utils/getmarketplacedetails.ts","./src/utils/index.ts","./src/utils/network.ts","./src/utils/networkconfigtowagmichain.ts","./src/utils/price.ts","./src/utils/__tests__/address.test.ts","./src/utils/__tests__/date.test.ts","./src/utils/__tests__/getmarketplacedetails.test.ts","./src/utils/__tests__/price.test.ts","./src/utils/_internal/error/base.ts","./src/utils/_internal/error/config.ts","./src/utils/_internal/error/context.ts","./src/utils/_internal/error/transaction.ts","./src/utils/abi/index.ts","./src/utils/abi/marketplace/eip2981.ts","./src/utils/abi/marketplace/index.ts","./src/utils/abi/marketplace/sequence-marketplace-v1.ts","./src/utils/abi/marketplace/sequence-marketplace-v2.ts","./src/utils/abi/token/erc1155.ts","./src/utils/abi/token/erc20.ts","./src/utils/abi/token/erc721.ts","./src/utils/abi/token/index.ts","./src/utils/decode/erc20.ts","./tsup.config.ts","./test/const.ts","./test/globalsetup.ts","./test/index.ts","./test/setup.ts","./test/test-utils.tsx","./test/mocks/wallet.ts"],"version":"5.8.2"}
|
|
1
|
+
{"root":["./src/consts.ts","./src/index.ts","./src/react/index.ts","./src/react/provider.tsx","./src/react/__tests__/provider.test.tsx","./src/react/_internal/consts.ts","./src/react/_internal/get-provider.ts","./src/react/_internal/index.ts","./src/react/_internal/logger.ts","./src/react/_internal/types.ts","./src/react/_internal/utils.ts","./src/react/_internal/api/get-query-client.ts","./src/react/_internal/api/index.ts","./src/react/_internal/api/laos-api.ts","./src/react/_internal/api/marketplace-api.ts","./src/react/_internal/api/marketplace.gen.ts","./src/react/_internal/api/query-keys.ts","./src/react/_internal/api/services.ts","./src/react/_internal/api/zod-schema.ts","./src/react/_internal/api/__mocks__/indexer.msw.ts","./src/react/_internal/api/__mocks__/marketplace.msw.ts","./src/react/_internal/api/__mocks__/metadata.msw.ts","./src/react/_internal/databeat/index.ts","./src/react/_internal/databeat/types.ts","./src/react/_internal/wagmi/create-config.ts","./src/react/_internal/wagmi/get-connectors.ts","./src/react/_internal/wagmi/index.ts","./src/react/_internal/wagmi/__tests__/create-config.test.ts","./src/react/_internal/wallet/usewallet.ts","./src/react/_internal/wallet/wallet.ts","./src/react/_internal/wallet/__tests__/wallet.test.ts","./src/react/hooks/index.ts","./src/react/hooks/useautoselectfeeoption.tsx","./src/react/hooks/usebalanceofcollectible.tsx","./src/react/hooks/usecancelorder.tsx","./src/react/hooks/usecanceltransactionsteps.tsx","./src/react/hooks/usecheckoutoptions.tsx","./src/react/hooks/usecollectible.tsx","./src/react/hooks/usecollection.tsx","./src/react/hooks/usecollectionbalancedetails.tsx","./src/react/hooks/usecollectiondetails.tsx","./src/react/hooks/usecollectiondetailspolling.tsx","./src/react/hooks/usecompareprices.tsx","./src/react/hooks/useconfig.tsx","./src/react/hooks/useconvertpricetousd.tsx","./src/react/hooks/usecountlistingsforcollectible.tsx","./src/react/hooks/usecountofcollectables.tsx","./src/react/hooks/usecountoffersforcollectible.tsx","./src/react/hooks/usecurrencies.tsx","./src/react/hooks/usecurrency.tsx","./src/react/hooks/usecurrencybalance.tsx","./src/react/hooks/usefilterstate.tsx","./src/react/hooks/usefilters.tsx","./src/react/hooks/usefloororder.tsx","./src/react/hooks/usegeneratecanceltransaction.tsx","./src/react/hooks/usegeneratelistingtransaction.tsx","./src/react/hooks/usegenerateoffertransaction.tsx","./src/react/hooks/usegenerateselltransaction.tsx","./src/react/hooks/usegetreceiptfromhash.tsx","./src/react/hooks/usehighestoffer.tsx","./src/react/hooks/useinventory.tsx","./src/react/hooks/uselistbalances.tsx","./src/react/hooks/uselistcollectibleactivities.tsx","./src/react/hooks/uselistcollectibles.tsx","./src/react/hooks/uselistcollectiblespaginated.tsx","./src/react/hooks/uselistcollectionactivities.tsx","./src/react/hooks/uselistcollections.tsx","./src/react/hooks/uselistlistingsforcollectible.tsx","./src/react/hooks/uselistoffersforcollectible.tsx","./src/react/hooks/uselowestlisting.tsx","./src/react/hooks/usemarketplaceconfig.tsx","./src/react/hooks/useroyalty.tsx","./src/react/hooks/usetransfertokens.tsx","./src/react/hooks/__tests__/useautoselectfeeoption.test.tsx","./src/react/hooks/__tests__/usebalanceofcollectible.test.tsx","./src/react/hooks/__tests__/usecancelorder.test.tsx","./src/react/hooks/__tests__/usecanceltransactionsteps.test.tsx","./src/react/hooks/__tests__/usecollectible.test.tsx","./src/react/hooks/__tests__/usecollection.test.tsx","./src/react/hooks/__tests__/usecollectionbalancedetails.test.tsx","./src/react/hooks/__tests__/usecollectiondetails.test.tsx","./src/react/hooks/__tests__/usecollectiondetailspolling.test.tsx","./src/react/hooks/__tests__/usecompareprices.test.tsx","./src/react/hooks/__tests__/useconvertpricetousd.test.tsx","./src/react/hooks/__tests__/usecountlistingsforcollectible.test.tsx","./src/react/hooks/__tests__/usecountofcollectables.test.tsx","./src/react/hooks/__tests__/usecountoffersforcollectible.test.tsx","./src/react/hooks/__tests__/usecurrencies.test.tsx","./src/react/hooks/__tests__/usecurrency.test.tsx","./src/react/hooks/__tests__/usecurrencybalance.test.tsx","./src/react/hooks/__tests__/usefilters.test.tsx","./src/react/hooks/__tests__/usefloororder.test.tsx","./src/react/hooks/__tests__/usegeneratecanceltransaction.test.tsx","./src/react/hooks/__tests__/usegeneratelistingtransaction.test.tsx","./src/react/hooks/__tests__/usegenerateoffertransaction.test.tsx","./src/react/hooks/__tests__/usegenerateselltransaction.test.tsx","./src/react/hooks/__tests__/usehighestoffer.test.tsx","./src/react/hooks/__tests__/useinventory.test.tsx","./src/react/hooks/__tests__/uselistbalances.test.tsx","./src/react/hooks/__tests__/uselistcollectibleactivities.test.tsx","./src/react/hooks/__tests__/uselistcollectibles.test.tsx","./src/react/hooks/__tests__/uselistcollectiblespaginated.test.tsx","./src/react/hooks/__tests__/uselistcollectionactivities.test.tsx","./src/react/hooks/__tests__/uselistcollections.test.tsx","./src/react/hooks/__tests__/uselistlistingsforcollectible.test.tsx","./src/react/hooks/__tests__/uselistoffersforcollectible.test.tsx","./src/react/hooks/__tests__/uselowestlisting.test.tsx","./src/react/hooks/__tests__/usemarketplaceconfig.test.tsx","./src/react/hooks/__tests__/useroyalty.test.tsx","./src/react/hooks/options/collectionoptions.ts","./src/react/hooks/options/index.ts","./src/react/hooks/options/marketplaceconfigoptions.ts","./src/react/hooks/options/__mocks__/marketplaceconfig.msw.ts","./src/react/hooks/options/__tests__/marketplaceconfigoptions.test.tsx","./src/react/hooks/util/optimisticcancelupdates.ts","./src/react/queries/balanceofcollectible.ts","./src/react/queries/gettokensupplies.ts","./src/react/queries/highestoffer.ts","./src/react/queries/index.ts","./src/react/queries/inventory.ts","./src/react/queries/listbalances.ts","./src/react/queries/listcollectibles.ts","./src/react/queries/lowestlisting.ts","./src/react/ssr/create-ssr-client.ts","./src/react/ssr/index.ts","./src/react/ssr/__tests__/create-ssr-client.test.ts","./src/react/ui/index.ts","./src/react/ui/components/_internals/action-button/actionbutton.tsx","./src/react/ui/components/_internals/action-button/store.ts","./src/react/ui/components/_internals/action-button/types.ts","./src/react/ui/components/_internals/action-button/__tests__/actionbuttonbody.test.tsx","./src/react/ui/components/_internals/action-button/__tests__/nonowneractions.test.tsx","./src/react/ui/components/_internals/action-button/__tests__/owneractions.test.tsx","./src/react/ui/components/_internals/action-button/__tests__/useactionbuttonlogic.test.tsx","./src/react/ui/components/_internals/action-button/components/actionbuttonbody.tsx","./src/react/ui/components/_internals/action-button/components/nonowneractions.tsx","./src/react/ui/components/_internals/action-button/components/owneractions.tsx","./src/react/ui/components/_internals/action-button/hooks/useactionbuttonlogic.ts","./src/react/ui/components/_internals/custom-select/customselect.tsx","./src/react/ui/components/_internals/custom-select/__tests__/customselect.test.tsx","./src/react/ui/components/_internals/pill/pill.tsx","./src/react/ui/components/_internals/pill/__tests__/pill.test.tsx","./src/react/ui/components/collectible-card/collectibleasset.tsx","./src/react/ui/components/collectible-card/collectiblecard.tsx","./src/react/ui/components/collectible-card/footer.tsx","./src/react/ui/components/collectible-card/index.ts","./src/react/ui/components/collectible-card/__tests__/collectibleasset.test.tsx","./src/react/ui/components/collectible-card/__tests__/collectiblecard.test.tsx","./src/react/ui/components/collectible-card/__tests__/footer.test.tsx","./src/react/ui/components/marketplace-logos/index.ts","./src/react/ui/components/marketplace-logos/marketplace-logos.tsx","./src/react/ui/icons/bellicon.tsx","./src/react/ui/icons/calendaricon.tsx","./src/react/ui/icons/carticon.tsx","./src/react/ui/icons/infoicon.tsx","./src/react/ui/icons/iconvariants.ts","./src/react/ui/icons/index.ts","./src/react/ui/modals/modal-provider.tsx","./src/react/ui/modals/buymodal/erc1155quantitymodal.tsx","./src/react/ui/modals/buymodal/modal.tsx","./src/react/ui/modals/buymodal/index.tsx","./src/react/ui/modals/buymodal/store.ts","./src/react/ui/modals/buymodal/__tests__/modal.test.tsx","./src/react/ui/modals/buymodal/__tests__/modal1155.test.tsx","./src/react/ui/modals/buymodal/__tests__/store.test.ts","./src/react/ui/modals/buymodal/hooks/usecheckoutoptions.ts","./src/react/ui/modals/buymodal/hooks/usefees.ts","./src/react/ui/modals/buymodal/hooks/useloaddata.ts","./src/react/ui/modals/buymodal/hooks/usepaymentmodalparams.ts","./src/react/ui/modals/buymodal/hooks/__tests__/usecheckoutoptions.test.tsx","./src/react/ui/modals/buymodal/hooks/__tests__/usefees.test.tsx","./src/react/ui/modals/createlistingmodal/modal.tsx","./src/react/ui/modals/createlistingmodal/index.tsx","./src/react/ui/modals/createlistingmodal/store.ts","./src/react/ui/modals/createlistingmodal/__tests__/modal.test.tsx","./src/react/ui/modals/createlistingmodal/hooks/usecreatelisting.tsx","./src/react/ui/modals/createlistingmodal/hooks/usegettokenapproval.ts","./src/react/ui/modals/createlistingmodal/hooks/usetransactionsteps.tsx","./src/react/ui/modals/makeoffermodal/modal.tsx","./src/react/ui/modals/makeoffermodal/index.tsx","./src/react/ui/modals/makeoffermodal/store.ts","./src/react/ui/modals/makeoffermodal/__tests__/modal.test.tsx","./src/react/ui/modals/makeoffermodal/hooks/usegettokenapproval.tsx","./src/react/ui/modals/makeoffermodal/hooks/usemakeoffer.tsx","./src/react/ui/modals/makeoffermodal/hooks/usetransactionsteps.tsx","./src/react/ui/modals/sellmodal/modal.tsx","./src/react/ui/modals/sellmodal/index.tsx","./src/react/ui/modals/sellmodal/store.ts","./src/react/ui/modals/sellmodal/utils.ts","./src/react/ui/modals/sellmodal/__tests__/modal.test.tsx","./src/react/ui/modals/sellmodal/hooks/usegettokenapproval.tsx","./src/react/ui/modals/sellmodal/hooks/usesell.tsx","./src/react/ui/modals/sellmodal/hooks/usetransactionsteps.tsx","./src/react/ui/modals/successfulpurchasemodal/_store.ts","./src/react/ui/modals/successfulpurchasemodal/index.tsx","./src/react/ui/modals/successfulpurchasemodal/__tests__/modal.test.tsx","./src/react/ui/modals/transfermodal/_store.ts","./src/react/ui/modals/transfermodal/index.tsx","./src/react/ui/modals/transfermodal/messages.ts","./src/react/ui/modals/transfermodal/_views/enterwalletaddress/index.tsx","./src/react/ui/modals/transfermodal/_views/enterwalletaddress/usehandletransfer.tsx","./src/react/ui/modals/transfermodal/_views/enterwalletaddress/_components/tokenquantityinput.tsx","./src/react/ui/modals/transfermodal/_views/enterwalletaddress/_components/transferbutton.tsx","./src/react/ui/modals/transfermodal/_views/enterwalletaddress/_components/walletaddressinput.tsx","./src/react/ui/modals/transfermodal/_views/followwalletinstructions/index.tsx","./src/react/ui/modals/_internal/types.ts","./src/react/ui/modals/_internal/components/consts.ts","./src/react/ui/modals/_internal/components/actionmodal/actionmodal.test.tsx","./src/react/ui/modals/_internal/components/actionmodal/actionmodal.tsx","./src/react/ui/modals/_internal/components/actionmodal/errormodal.tsx","./src/react/ui/modals/_internal/components/actionmodal/loadingmodal.tsx","./src/react/ui/modals/_internal/components/actionmodal/index.ts","./src/react/ui/modals/_internal/components/actionmodal/store.ts","./src/react/ui/modals/_internal/components/alertmessage/index.tsx","./src/react/ui/modals/_internal/components/calendar/index.tsx","./src/react/ui/modals/_internal/components/calendardropdown/index.tsx","./src/react/ui/modals/_internal/components/currencyimage/index.tsx","./src/react/ui/modals/_internal/components/currencyoptionsselect/index.tsx","./src/react/ui/modals/_internal/components/currencyoptionsselect/__tests__/index.test.tsx","./src/react/ui/modals/_internal/components/expirationdateselect/index.tsx","./src/react/ui/modals/_internal/components/floorpricetext/index.tsx","./src/react/ui/modals/_internal/components/floorpricetext/__tests__/floorpricetext.test.tsx","./src/react/ui/modals/_internal/components/priceinput/index.tsx","./src/react/ui/modals/_internal/components/priceinput/types.ts","./src/react/ui/modals/_internal/components/priceinput/__tests__/priceinput.test.tsx","./src/react/ui/modals/_internal/components/quantityinput/index.tsx","./src/react/ui/modals/_internal/components/quantityinput/__tests__/index.test.tsx","./src/react/ui/modals/_internal/components/selectwaasfeeoptions/index.tsx","./src/react/ui/modals/_internal/components/selectwaasfeeoptions/store.ts","./src/react/ui/modals/_internal/components/selectwaasfeeoptions/usewaasfeeoptionmanager.tsx","./src/react/ui/modals/_internal/components/selectwaasfeeoptions/__tests__/actionbuttons.test.tsx","./src/react/ui/modals/_internal/components/selectwaasfeeoptions/__tests__/balanceindicator.test.tsx","./src/react/ui/modals/_internal/components/selectwaasfeeoptions/__tests__/selectwaasfeeoptions.test.tsx","./src/react/ui/modals/_internal/components/selectwaasfeeoptions/_components/actionbuttons.tsx","./src/react/ui/modals/_internal/components/selectwaasfeeoptions/_components/balanceindicator.tsx","./src/react/ui/modals/_internal/components/switchchainmodal/index.tsx","./src/react/ui/modals/_internal/components/switchchainmodal/store.ts","./src/react/ui/modals/_internal/components/switchchainmodal/__tests__/switchchainmodal.test.tsx","./src/react/ui/modals/_internal/components/timeago/index.tsx","./src/react/ui/modals/_internal/components/tokenpreview/index.tsx","./src/react/ui/modals/_internal/components/transaction-footer/index.tsx","./src/react/ui/modals/_internal/components/transactiondetails/index.tsx","./src/react/ui/modals/_internal/components/transactionheader/index.tsx","./src/react/ui/modals/_internal/components/transactionpreview/consts.ts","./src/react/ui/modals/_internal/components/transactionpreview/index.tsx","./src/react/ui/modals/_internal/components/transactionpreview/usetransactionpreviewtitle.tsx","./src/react/ui/modals/_internal/components/transactionstatusmodal/index.tsx","./src/react/ui/modals/_internal/components/transactionstatusmodal/store.ts","./src/react/ui/modals/_internal/components/transactionstatusmodal/__tests__/transactionstatusmodal.test.tsx","./src/react/ui/modals/_internal/components/transactionstatusmodal/__tests__/utils.test.ts","./src/react/ui/modals/_internal/components/transactionstatusmodal/hooks/usetransactionstatus.ts","./src/react/ui/modals/_internal/components/transactionstatusmodal/util/getformattedtype.ts","./src/react/ui/modals/_internal/components/transactionstatusmodal/util/getmessage.ts","./src/react/ui/modals/_internal/components/transactionstatusmodal/util/gettitle.ts","./src/react/ui/modals/_internal/components/waasfeeoptionsselect/waasfeeoptionsselect.tsx","./src/react/ui/modals/_internal/hooks/useselectwaasfeeoptions.ts","./src/react/ui/modals/_internal/stores/accountmodal.ts","./src/types/api-types.ts","./src/types/builder-types.ts","./src/types/custom.d.ts","./src/types/index.ts","./src/types/messages.ts","./src/types/sdk-config.ts","./src/types/types.ts","./src/types/waas-types.ts","./src/utils/address.ts","./src/utils/cn.ts","./src/utils/date.ts","./src/utils/getmarketplacedetails.ts","./src/utils/index.ts","./src/utils/network.ts","./src/utils/networkconfigtowagmichain.ts","./src/utils/price.ts","./src/utils/__tests__/address.test.ts","./src/utils/__tests__/date.test.ts","./src/utils/__tests__/getmarketplacedetails.test.ts","./src/utils/__tests__/price.test.ts","./src/utils/_internal/error/base.ts","./src/utils/_internal/error/config.ts","./src/utils/_internal/error/context.ts","./src/utils/_internal/error/transaction.ts","./src/utils/abi/index.ts","./src/utils/abi/marketplace/eip2981.ts","./src/utils/abi/marketplace/index.ts","./src/utils/abi/marketplace/sequence-marketplace-v1.ts","./src/utils/abi/marketplace/sequence-marketplace-v2.ts","./src/utils/abi/token/erc1155.ts","./src/utils/abi/token/erc20.ts","./src/utils/abi/token/erc721.ts","./src/utils/abi/token/index.ts","./src/utils/decode/erc20.ts","./tsup.config.ts","./test/const.ts","./test/globalsetup.ts","./test/index.ts","./test/setup.ts","./test/test-utils.tsx","./test/mocks/wallet.ts"],"version":"5.8.3"}
|