@0xsequence/marketplace-sdk 0.0.1 → 0.1.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 (93) hide show
  1. package/dist/chunk-7CL54NCX.js +41 -0
  2. package/dist/chunk-7CL54NCX.js.map +1 -0
  3. package/dist/{chunk-G3D572BT.js → chunk-G3YU4NQ2.js} +24 -1
  4. package/dist/chunk-G3YU4NQ2.js.map +1 -0
  5. package/dist/{chunk-SM7V6ZWI.js → chunk-GNB736ZE.js} +226 -208
  6. package/dist/chunk-GNB736ZE.js.map +1 -0
  7. package/dist/chunk-ITJEOCDV.js +1006 -0
  8. package/dist/chunk-ITJEOCDV.js.map +1 -0
  9. package/dist/{chunk-QOJXWHRZ.js → chunk-LFQB477Y.js} +3 -1
  10. package/dist/chunk-LFQB477Y.js.map +1 -0
  11. package/dist/{chunk-VPGWEMWL.js → chunk-M4MXVMAM.js} +134 -25
  12. package/dist/chunk-M4MXVMAM.js.map +1 -0
  13. package/dist/{chunk-4PFMUVE4.js → chunk-SNOEEUPZ.js} +2 -2
  14. package/dist/{create-config-Dz0gCiQ0.d.ts → create-config-Cto2ehcz.d.ts} +1 -1
  15. package/dist/index.css +4 -1
  16. package/dist/index.d.ts +3 -2
  17. package/dist/index.js +1 -1
  18. package/dist/{marketplace-config-DZbtyrma.d.ts → marketplace-config-Bbxl-uKX.d.ts} +2 -1
  19. package/dist/react/_internal/index.d.ts +4 -3
  20. package/dist/react/_internal/index.js +9 -1
  21. package/dist/react/_internal/wagmi/index.d.ts +2 -2
  22. package/dist/react/hooks/index.d.ts +1363 -101
  23. package/dist/react/hooks/index.js +13 -7
  24. package/dist/react/index.css +4 -1
  25. package/dist/react/index.css.map +1 -1
  26. package/dist/react/index.d.ts +6 -5
  27. package/dist/react/index.js +28 -22
  28. package/dist/react/ssr/index.d.ts +2 -1
  29. package/dist/react/ssr/index.js +23 -0
  30. package/dist/react/ssr/index.js.map +1 -1
  31. package/dist/react/ui/index.css +4 -1
  32. package/dist/react/ui/index.css.map +1 -1
  33. package/dist/react/ui/index.d.ts +4 -4
  34. package/dist/react/ui/index.js +5 -5
  35. package/dist/react/ui/modals/_internal/components/actionModal/index.js +2 -2
  36. package/dist/styles/index.css +4 -1
  37. package/dist/styles/index.css.map +1 -1
  38. package/dist/styles/index.d.ts +2 -1
  39. package/dist/styles/index.js +3 -4972
  40. package/dist/styles/index.js.map +1 -1
  41. package/dist/types/index.d.ts +2 -1
  42. package/dist/types/index.js +1 -1
  43. package/dist/types-BzZVURNL.d.ts +19 -0
  44. package/dist/utils/index.d.ts +2 -1
  45. package/dist/utils/index.js +1 -1
  46. package/package.json +3 -2
  47. package/src/react/_internal/api/zod-schema.ts +636 -0
  48. package/src/react/_internal/types.ts +32 -8
  49. package/src/react/hooks/index.ts +1 -0
  50. package/src/react/hooks/useBalanceOfCollectible.tsx +43 -18
  51. package/src/react/hooks/useCollectible.tsx +17 -11
  52. package/src/react/hooks/useCollection.tsx +35 -29
  53. package/src/react/hooks/useCountOfCollectables.tsx +77 -0
  54. package/src/react/hooks/useCurrencies.tsx +23 -12
  55. package/src/react/hooks/useFilters.tsx +15 -9
  56. package/src/react/hooks/useFloorOrder.tsx +23 -8
  57. package/src/react/hooks/useGenerateSellTransaction.tsx +16 -9
  58. package/src/react/hooks/useHighestOffer.tsx +23 -13
  59. package/src/react/hooks/useListBalances.tsx +57 -26
  60. package/src/react/hooks/useListCollectibles.tsx +25 -12
  61. package/src/react/hooks/useListOffersForCollectible.tsx +13 -5
  62. package/src/react/hooks/useLowestListing.tsx +23 -14
  63. package/src/react/hooks/useRoyaltyPercentage.tsx +18 -8
  64. package/src/react/hooks/useTransferTokens.tsx +3 -3
  65. package/src/react/ui/modals/CreateListingModal/_store.ts +5 -5
  66. package/src/react/ui/modals/CreateListingModal/index.tsx +5 -4
  67. package/src/react/ui/modals/MakeOfferModal/_store.ts +6 -9
  68. package/src/react/ui/modals/MakeOfferModal/index.tsx +15 -25
  69. package/src/react/ui/modals/SellModal/_store.ts +28 -23
  70. package/src/react/ui/modals/SellModal/index.tsx +11 -10
  71. package/src/react/ui/modals/TransferModal/_views/enterWalletAddress/index.tsx +8 -7
  72. package/src/react/ui/modals/_internal/components/currencyOptionsSelect/index.tsx +2 -1
  73. package/src/react/ui/modals/_internal/components/floorPriceText/index.tsx +3 -2
  74. package/src/react/ui/modals/_internal/components/priceInput/index.tsx +55 -12
  75. package/src/react/ui/modals/_internal/components/priceInput/styles.css.ts +4 -0
  76. package/src/react/ui/modals/_internal/components/quantityInput/index.tsx +2 -1
  77. package/src/react/ui/modals/_internal/components/tokenPreview/index.tsx +2 -1
  78. package/src/react/ui/modals/_internal/components/transactionDetails/index.tsx +2 -2
  79. package/src/react/ui/modals/_internal/components/transactionPreview/index.tsx +4 -4
  80. package/src/react/ui/modals/_internal/components/transactionStatusModal/index.tsx +14 -14
  81. package/src/react/ui/modals/_internal/components/transactionStatusModal/store.ts +5 -5
  82. package/src/types/marketplace-config.ts +2 -1
  83. package/dist/chunk-G3D572BT.js.map +0 -1
  84. package/dist/chunk-QOJXWHRZ.js.map +0 -1
  85. package/dist/chunk-SM7V6ZWI.js.map +0 -1
  86. package/dist/chunk-STO74F2I.js +0 -14
  87. package/dist/chunk-STO74F2I.js.map +0 -1
  88. package/dist/chunk-VPGWEMWL.js.map +0 -1
  89. package/dist/chunk-ZE2LNX65.js +0 -394
  90. package/dist/chunk-ZE2LNX65.js.map +0 -1
  91. package/dist/types-BrAQ8-w4.d.ts +0 -12
  92. package/src/react/hooks/useCollectionCounts.tsx +0 -61
  93. /package/dist/{chunk-4PFMUVE4.js.map → chunk-SNOEEUPZ.js.map} +0 -0
@@ -1,13 +1,13 @@
1
+ import { Box, Button, Text, TextInput } from '@0xsequence/design-system';
2
+ import { type CollectionType, ContractType } from '@internal';
1
3
  import { useCollection } from '@react-hooks/useCollection';
4
+ import { useListBalances } from '@react-hooks/useListBalances';
5
+ import { isAddress } from 'viem';
6
+ import { useAccount } from 'wagmi';
2
7
  import AlertMessage from '../../../_internal/components/alertMessage';
3
8
  import QuantityInput from '../../../_internal/components/quantityInput';
4
9
  import { transferModal$ } from '../../_store';
5
10
  import getMessage from '../../messages';
6
- import { Box, Button, Text, TextInput } from '@0xsequence/design-system';
7
- import { isAddress } from 'viem';
8
- import { type CollectionType, ContractType } from '@internal';
9
- import { useTokenBalances } from '@react-hooks/useListBalances';
10
- import { useAccount } from 'wagmi';
11
11
 
12
12
  const EnterWalletAddressView = () => {
13
13
  const { address } = useAccount();
@@ -17,11 +17,12 @@ const EnterWalletAddressView = () => {
17
17
  const isWalletAddressValid = isAddress(
18
18
  transferModal$.state.receiverAddress.get(),
19
19
  );
20
- const { data: tokenBalance } = useTokenBalances({
20
+ const { data: tokenBalance } = useListBalances({
21
21
  chainId,
22
22
  contractAddress: collectionAddress,
23
23
  tokenId,
24
- accountAddress: address,
24
+ accountAddress: address!,
25
+ query: { enabled: !!address },
25
26
  });
26
27
  const balanceAmount = tokenBalance?.pages[0].balances[0].balance;
27
28
  const { data: collection } = useCollection({
@@ -5,6 +5,7 @@ import { observer } from '@legendapp/state/react';
5
5
  import { useCurrencies } from '@react-hooks/useCurrencies';
6
6
  import type { Currency } from '@types';
7
7
  import { useEffect, useState } from 'react';
8
+ import type { Hex } from 'viem';
8
9
  import { currencySelect } from './styles.css';
9
10
 
10
11
  // TODO: this should be exported from design system
@@ -14,7 +15,7 @@ type SelectOption = {
14
15
  };
15
16
 
16
17
  type CurrencyOptionsSelectProps = {
17
- collectionAddress: string;
18
+ collectionAddress: Hex;
18
19
  chainId: ChainId;
19
20
  $selectedCurrency: Observable<Currency | null | undefined>;
20
21
  };
@@ -1,7 +1,8 @@
1
1
  import { Text } from '@0xsequence/design-system';
2
+ import { useLowestListing } from '@react-hooks/useLowestListing';
2
3
  import type { Price } from '@types';
4
+ import type { Hex } from 'viem';
3
5
  import { calculatePriceDifferencePercentage } from '../../../../../../utils';
4
- import { useLowestListing } from '@react-hooks/useLowestListing';
5
6
 
6
7
  export default function FloorPriceText({
7
8
  chainId,
@@ -10,7 +11,7 @@ export default function FloorPriceText({
10
11
  price,
11
12
  }: {
12
13
  chainId: string;
13
- collectionAddress: string;
14
+ collectionAddress: Hex;
14
15
  tokenId: string;
15
16
  price: Price;
16
17
  }) {
@@ -1,40 +1,76 @@
1
+ import CurrencyOptionsSelect from '../currencyOptionsSelect';
2
+ import { priceInputCurrencyImage, priceInputWrapper } from './styles.css';
1
3
  import { Box, NumericInput, TokenImage } from '@0xsequence/design-system';
2
4
  import type { Observable } from '@legendapp/state';
3
5
  import { observer } from '@legendapp/state/react';
4
6
  import type { Price } from '@types';
5
7
  import { useState } from 'react';
6
- import CurrencyOptionsSelect from '../currencyOptionsSelect';
7
- import { priceInputWrapper } from './styles.css';
8
- import { parseUnits } from 'viem';
8
+ import { erc20Abi, formatUnits, Hex, parseUnits } from 'viem';
9
+ import { useAccount, useReadContract } from 'wagmi';
9
10
 
10
11
  type PriceInputProps = {
11
- collectionAddress: string;
12
+ collectionAddress: Hex;
12
13
  chainId: string;
13
14
  $listingPrice: Observable<Price | undefined>;
14
- error?: string;
15
+ checkBalance?: {
16
+ enabled: boolean;
17
+ callback: (state: boolean) => void;
18
+ };
15
19
  };
16
20
 
17
21
  const PriceInput = observer(function PriceInput({
18
22
  chainId,
19
23
  collectionAddress,
20
24
  $listingPrice,
21
- error,
25
+ checkBalance,
22
26
  }: PriceInputProps) {
23
- const [inputPrice, setInputPrice] = useState('');
27
+ const [balanceError, setBalanceError] = useState('');
28
+ const { address: accountAddress } = useAccount();
29
+ const { data: balance, isSuccess: isBalanceSuccess } = useReadContract({
30
+ address: $listingPrice.currency.contractAddress.get() as Hex,
31
+ abi: erc20Abi,
32
+ functionName: 'balanceOf',
33
+ args: [accountAddress as Hex],
34
+ query: {
35
+ enabled: checkBalance?.enabled,
36
+ },
37
+ });
38
+ const listingPriceAmountRaw = $listingPrice.amountRaw.get();
39
+ const currencyDecimals = $listingPrice.currency.decimals.get();
40
+
41
+ const checkInsufficientBalance = (priceAmountRaw: string) => {
42
+ const hasInsufficientBalance =
43
+ isBalanceSuccess &&
44
+ priceAmountRaw &&
45
+ currencyDecimals &&
46
+ BigInt(priceAmountRaw) > (balance || 0);
47
+
48
+ if (!checkBalance) return;
49
+
50
+ if (hasInsufficientBalance) {
51
+ setBalanceError('Insufficient balance');
52
+ checkBalance.callback(true);
53
+ } else {
54
+ setBalanceError('');
55
+ checkBalance.callback(false);
56
+ }
57
+ };
58
+
24
59
  const changeListingPrice = (value: string) => {
25
- setInputPrice(value);
26
60
  const parsedAmount = parseUnits(
27
61
  value,
28
62
  Number($listingPrice.currency.decimals.get()),
29
63
  );
64
+
30
65
  $listingPrice.amountRaw.set(parsedAmount.toString());
66
+ checkBalance && checkInsufficientBalance(parsedAmount.toString());
31
67
  };
32
68
 
33
69
  return (
34
70
  <Box className={priceInputWrapper} position="relative">
35
71
  <Box
72
+ className={priceInputCurrencyImage}
36
73
  position="absolute"
37
- bottom="3"
38
74
  left="2"
39
75
  display="flex"
40
76
  alignItems="center"
@@ -56,13 +92,20 @@ const PriceInput = observer(function PriceInput({
56
92
  />
57
93
  }
58
94
  numeric={true}
59
- value={inputPrice}
95
+ value={
96
+ listingPriceAmountRaw
97
+ ? formatUnits(
98
+ BigInt(listingPriceAmountRaw),
99
+ Number(currencyDecimals),
100
+ )
101
+ : ''
102
+ }
60
103
  onChange={(event) => changeListingPrice(event.target.value)}
61
104
  width="full"
62
105
  />
63
- {error && (
106
+ {balanceError && (
64
107
  <Box color="negative" fontSize="small">
65
- {error}
108
+ {balanceError}
66
109
  </Box>
67
110
  )}
68
111
  </Box>
@@ -6,6 +6,10 @@ export const priceInputWrapper = style({
6
6
  width: '100%',
7
7
  });
8
8
 
9
+ export const priceInputCurrencyImage = style({
10
+ top: 29,
11
+ });
12
+
9
13
  globalStyle(`${priceInputWrapper} > label`, {
10
14
  gap: 2,
11
15
  });
@@ -1,6 +1,7 @@
1
1
  import { Box, IconButton, NumericInput } from '@0xsequence/design-system';
2
2
  import type { Observable } from '@legendapp/state';
3
3
  import { useCollectible } from '@react-hooks/useCollectible';
4
+ import type { Hex } from 'viem';
4
5
  import SvgMinusIcon from '../../../../icons/MinusIcon';
5
6
  import SvgPlusIcon from '../../../../icons/PlusIcon';
6
7
  import { quantityInputWrapper } from './styles.css';
@@ -8,7 +9,7 @@ import { quantityInputWrapper } from './styles.css';
8
9
  type QuantityInputProps = {
9
10
  $quantity: Observable<string>;
10
11
  chainId: string;
11
- collectionAddress: string;
12
+ collectionAddress: Hex;
12
13
  collectibleId: string;
13
14
  };
14
15
 
@@ -1,10 +1,11 @@
1
1
  import { Box, Image, Skeleton, Text } from '@0xsequence/design-system';
2
2
  import { useCollectible } from '@react-hooks/useCollectible';
3
+ import type { Hex } from 'viem';
3
4
  import { tokenPreview } from './styles.css';
4
5
 
5
6
  type TokenPreviewProps = {
6
7
  collectionName?: string;
7
- collectionAddress: string;
8
+ collectionAddress: Hex;
8
9
  collectibleId: string;
9
10
  chainId: string;
10
11
  };
@@ -2,11 +2,11 @@ import { Box, NetworkImage, Skeleton, Text } from '@0xsequence/design-system';
2
2
  import { useMarketplaceConfig } from '@react-hooks/useMarketplaceConfig';
3
3
  import { useRoyaltyPercentage } from '@react-hooks/useRoyaltyPercentage';
4
4
  import type { Price } from '@types';
5
- import { formatUnits } from 'viem';
5
+ import { type Hex, formatUnits } from 'viem';
6
6
 
7
7
  type TransactionDetailsProps = {
8
8
  collectibleId: string;
9
- collectionAddress: string;
9
+ collectionAddress: Hex;
10
10
  chainId: string;
11
11
  price?: Price;
12
12
  };
@@ -1,16 +1,16 @@
1
1
  import { Box, Image, NetworkImage, Text } from '@0xsequence/design-system';
2
2
  import type { TokenMetadata } from '@internal';
3
+ import { observer } from '@legendapp/state/react';
3
4
  import { useCollection } from '@react-hooks/useCollection';
5
+ import type { Price } from '@types';
6
+ import { type Hex, formatUnits } from 'viem';
4
7
  import TimeAgo from '../timeAgo';
5
8
  import { transactionStatusModal$ } from '../transactionStatusModal/store';
6
- import { observer } from '@legendapp/state/react';
7
9
  import { useTransactionPreviewTitle } from './useTransactionPreviewTitle';
8
- import type { Price } from '@types';
9
- import { formatUnits } from 'viem';
10
10
 
11
11
  type TransactionPreviewProps = {
12
12
  price?: Price;
13
- collectionAddress: string;
13
+ collectionAddress: Hex;
14
14
  chainId: string;
15
15
  collectible: TokenMetadata;
16
16
  isConfirming: boolean;
@@ -1,32 +1,32 @@
1
+ import {
2
+ CloseIcon,
3
+ IconButton,
4
+ Skeleton,
5
+ Text,
6
+ } from '@0xsequence/design-system';
1
7
  import { observer } from '@legendapp/state/react';
8
+ import { Close, Content, Overlay, Portal, Root } from '@radix-ui/react-dialog';
9
+ import { useCollectible } from '@react-hooks/useCollectible';
10
+ import type { Price, TokenMetadata } from '@types';
11
+ import type { Hex } from 'viem';
12
+ import { useTransactionReceipt } from 'wagmi';
13
+ import TransactionFooter from '../transaction-footer';
14
+ import TransactionPreview from '../transactionPreview';
2
15
  import {
3
16
  type ConfirmationStatus,
4
17
  type StatusOrderType,
5
18
  transactionStatusModal$,
6
19
  } from './store';
7
- import { Close, Content, Overlay, Portal, Root } from '@radix-ui/react-dialog';
8
20
  import {
9
21
  closeButton,
10
22
  dialogOverlay,
11
23
  transactionStatusModalContent,
12
24
  } from './styles.css';
13
- import {
14
- CloseIcon,
15
- IconButton,
16
- Skeleton,
17
- Text,
18
- } from '@0xsequence/design-system';
19
- import { useCollectible } from '@react-hooks/useCollectible';
20
- import type { Hex } from 'viem';
21
- import TransactionPreview from '../transactionPreview';
22
- import type { Price, TokenMetadata } from '@types';
23
- import TransactionFooter from '../transaction-footer';
24
- import { useTransactionReceipt } from 'wagmi';
25
25
 
26
26
  export type ShowTransactionStatusModalArgs = {
27
27
  hash: Hex;
28
28
  price?: Price;
29
- collectionAddress: string;
29
+ collectionAddress: Hex;
30
30
  chainId: string;
31
31
  tokenId: string;
32
32
  getTitle?: (props: ConfirmationStatus) => string;
@@ -1,9 +1,9 @@
1
- import { observable } from '@legendapp/state';
2
- import type { ShowTransactionStatusModalArgs } from '.';
3
1
  import type { TransactionStatus } from '@0xsequence/indexer';
4
- import type { Hex } from 'viem';
5
2
  import type { StepType } from '@internal';
3
+ import { observable } from '@legendapp/state';
6
4
  import type { Price } from '@types';
5
+ import type { Hex } from 'viem';
6
+ import type { ShowTransactionStatusModalArgs } from '.';
7
7
 
8
8
  export type ConfirmationStatus = {
9
9
  isConfirming: boolean;
@@ -32,7 +32,7 @@ export interface TransactionStatusModalState {
32
32
  status: TransactionStatusExtended;
33
33
  type: StatusOrderType | undefined;
34
34
  price: Price | undefined;
35
- collectionAddress: string;
35
+ collectionAddress: Hex;
36
36
  chainId: string;
37
37
  tokenId: string;
38
38
  getTitle?: (params: ConfirmationStatus) => string;
@@ -75,7 +75,7 @@ export const initialState: TransactionStatusModalState = {
75
75
  hash: undefined,
76
76
  status: 'PENDING',
77
77
  price: undefined,
78
- collectionAddress: '',
78
+ collectionAddress: '' as Hex,
79
79
  chainId: '',
80
80
  tokenId: '',
81
81
  getTitle: undefined,
@@ -1,4 +1,5 @@
1
1
  import type { ChainId } from '@0xsequence/network';
2
+ import type { Hex } from 'viem';
2
3
 
3
4
  interface Socials {
4
5
  twitter?: string;
@@ -27,7 +28,7 @@ interface WalletOptionsNew {
27
28
  }
28
29
 
29
30
  interface Collection {
30
- collectionAddress: string;
31
+ collectionAddress: Hex;
31
32
  chainId: ChainId;
32
33
  exchanges?: string[];
33
34
  marketplaceFeePercentage: number;
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/react/_internal/api/get-query-client.ts","../src/react/_internal/api/marketplace.gen.ts","../src/react/_internal/api/query-keys.ts","../src/react/_internal/api/services.ts","../src/react/_internal/wagmi/create-config.ts","../src/react/_internal/wagmi/embedded.ts","../src/react/_internal/wagmi/universal.ts"],"sourcesContent":["import {\n\tQueryClient,\n\tdefaultShouldDehydrateQuery,\n} from '@tanstack/react-query';\nimport { hashFn } from 'wagmi/query';\n\nfunction makeQueryClient() {\n\treturn new QueryClient({\n\t\tdefaultOptions: {\n\t\t\tqueries: {\n\t\t\t\tstaleTime: 60 * 1000,\n\t\t\t\tqueryKeyHashFn: hashFn,\n\t\t\t},\n\t\t\tdehydrate: {\n\t\t\t\tshouldDehydrateQuery: (query) =>\n\t\t\t\t\tdefaultShouldDehydrateQuery(query) ||\n\t\t\t\t\tquery.state.status === 'pending',\n\t\t\t},\n\t\t},\n\t});\n}\n\nlet browserQueryClient: QueryClient | undefined = undefined;\n\nexport function getQueryClient() {\n\tif (typeof globalThis.document === 'undefined') {\n\t\treturn makeQueryClient();\n\t} else {\n\t\tif (!browserQueryClient) browserQueryClient = makeQueryClient();\n\t\treturn browserQueryClient;\n\t}\n}\n","/* eslint-disable */\n// marketplace-api 272a2d3c9208fb21b84c88a2a8cbd9ab8e29964d\n// --\n// Code generated by webrpc-gen@v0.21.0 with typescript generator. DO NOT EDIT.\n//\n// webrpc-gen -schema=marketplace.ridl -target=typescript -client -out=./clients/marketplace.gen.ts\n\nexport const WebrpcHeader = \"Webrpc\"\n\nexport const WebrpcHeaderValue = \"webrpc@v0.21.0;gen-typescript@v0.15.0;marketplace-api@v0.0.0-272a2d3c9208fb21b84c88a2a8cbd9ab8e29964d\"\n\n// WebRPC description and code-gen version\nexport const WebRPCVersion = \"v1\"\n\n// Schema version of your RIDL schema\nexport const WebRPCSchemaVersion = \"\"\n\n// Schema hash generated from your RIDL schema\nexport const WebRPCSchemaHash = \"272a2d3c9208fb21b84c88a2a8cbd9ab8e29964d\"\n\ntype WebrpcGenVersions = {\n webrpcGenVersion: string;\n codeGenName: string;\n codeGenVersion: string;\n schemaName: string;\n schemaVersion: string;\n};\n\nexport function VersionFromHeader(headers: Headers): WebrpcGenVersions {\n const headerValue = headers.get(WebrpcHeader);\n if (!headerValue) {\n return {\n webrpcGenVersion: \"\",\n codeGenName: \"\",\n codeGenVersion: \"\",\n schemaName: \"\",\n schemaVersion: \"\",\n };\n }\n\n return parseWebrpcGenVersions(headerValue);\n}\n\nfunction parseWebrpcGenVersions(header: string): WebrpcGenVersions {\n const versions = header.split(\";\");\n if (versions.length < 3) {\n return {\n webrpcGenVersion: \"\",\n codeGenName: \"\",\n codeGenVersion: \"\",\n schemaName: \"\",\n schemaVersion: \"\",\n };\n }\n\n const [_, webrpcGenVersion] = versions[0].split(\"@\");\n const [codeGenName, codeGenVersion] = versions[1].split(\"@\");\n const [schemaName, schemaVersion] = versions[2].split(\"@\");\n\n return {\n webrpcGenVersion,\n codeGenName,\n codeGenVersion,\n schemaName,\n schemaVersion,\n };\n}\n\n//\n// Types\n//\n\n\nexport interface TokenMetadata {\n tokenId: string\n name: string\n description?: string\n image?: string\n video?: string\n audio?: string\n properties?: {[key: string]: any}\n attributes: Array<{[key: string]: any}>\n image_data?: string\n external_url?: string\n background_color?: string\n animation_url?: string\n decimals?: number\n updatedAt?: string\n assets?: Array<Asset>\n}\n\nexport interface Asset {\n id: number\n collectionId: number\n tokenId: string\n url?: string\n metadataField: string\n name?: string\n filesize?: number\n mimeType?: string\n width?: number\n height?: number\n updatedAt?: string\n}\n\nexport enum SortOrder {\n DESC = 'DESC',\n ASC = 'ASC'\n}\n\nexport enum PropertyType {\n INT = 'INT',\n STRING = 'STRING',\n ARRAY = 'ARRAY',\n GENERIC = 'GENERIC'\n}\n\nexport enum MarketplaceKind {\n unknown = 'unknown',\n sequence_marketplace_v1 = 'sequence_marketplace_v1',\n sequence_marketplace_v2 = 'sequence_marketplace_v2',\n opensea = 'opensea',\n magic_eden = 'magic_eden',\n mintify = 'mintify',\n looks_rare = 'looks_rare',\n x2y2 = 'x2y2',\n sudo_swap = 'sudo_swap',\n coinbase = 'coinbase',\n rarible = 'rarible',\n nftx = 'nftx',\n foundation = 'foundation',\n manifold = 'manifold',\n zora = 'zora',\n blur = 'blur',\n super_rare = 'super_rare',\n okx = 'okx',\n element = 'element',\n aqua_xyz = 'aqua_xyz',\n auranft_co = 'auranft_co'\n}\n\nexport enum OrderbookKind {\n unknown = 'unknown',\n sequence_marketplace_v1 = 'sequence_marketplace_v1',\n sequence_marketplace_v2 = 'sequence_marketplace_v2',\n blur = 'blur',\n opensea = 'opensea',\n looks_rare = 'looks_rare',\n reservoir = 'reservoir',\n x2y2 = 'x2y2'\n}\n\nexport enum SourceKind {\n unknown = 'unknown',\n external = 'external',\n sequence_marketplace_v1 = 'sequence_marketplace_v1',\n sequence_marketplace_v2 = 'sequence_marketplace_v2'\n}\n\nexport enum OrderSide {\n unknown = 'unknown',\n listing = 'listing',\n offer = 'offer'\n}\n\nexport enum OrderStatus {\n unknown = 'unknown',\n active = 'active',\n inactive = 'inactive',\n expired = 'expired',\n cancelled = 'cancelled',\n filled = 'filled'\n}\n\nexport enum ContractType {\n UNKNOWN = 'UNKNOWN',\n ERC20 = 'ERC20',\n ERC721 = 'ERC721',\n ERC1155 = 'ERC1155'\n}\n\nexport enum CollectionStatus {\n unknown = 'unknown',\n created = 'created',\n syncing_metadata = 'syncing_metadata',\n synced_metadata = 'synced_metadata',\n syncing_tokens = 'syncing_tokens',\n synced_tokens = 'synced_tokens',\n syncing_orders = 'syncing_orders',\n active = 'active',\n failed = 'failed',\n inactive = 'inactive'\n}\n\nexport enum ProjectStatus {\n unknown = 'unknown',\n active = 'active',\n inactive = 'inactive'\n}\n\nexport enum CollectibleStatus {\n unknown = 'unknown',\n active = 'active',\n inactive = 'inactive'\n}\n\nexport enum WalletKind {\n unknown = 'unknown',\n sequence = 'sequence'\n}\n\nexport enum StepType {\n unknown = 'unknown',\n tokenApproval = 'tokenApproval',\n buy = 'buy',\n sell = 'sell',\n createListing = 'createListing',\n createOffer = 'createOffer',\n signEIP712 = 'signEIP712',\n signEIP191 = 'signEIP191'\n}\n\nexport enum TransactionCrypto {\n none = 'none',\n partially = 'partially',\n all = 'all'\n}\n\nexport enum TransactionNFTCheckoutProvider {\n unknown = 'unknown',\n sardine = 'sardine',\n transak = 'transak'\n}\n\nexport enum TransactionOnRampProvider {\n unknown = 'unknown',\n sardine = 'sardine',\n transak = 'transak'\n}\n\nexport enum TransactionSwapProvider {\n unknown = 'unknown',\n zerox = 'zerox'\n}\n\nexport enum ExecuteType {\n unknown = 'unknown',\n order = 'order'\n}\n\nexport interface Page {\n page: number\n pageSize: number\n more?: boolean\n sort?: Array<SortBy>\n}\n\nexport interface SortBy {\n column: string\n order: SortOrder\n}\n\nexport interface Filter {\n text?: string\n properties?: Array<PropertyFilter>\n}\n\nexport interface PropertyFilter {\n name: string\n type: PropertyType\n min?: number\n max?: number\n values?: Array<any>\n}\n\nexport interface CollectiblesFilter {\n includeEmpty: boolean\n searchText?: string\n properties?: Array<PropertyFilter>\n marketplaces?: Array<MarketplaceKind>\n inAccounts?: Array<string>\n notInAccounts?: Array<string>\n ordersCreatedBy?: Array<string>\n ordersNotCreatedBy?: Array<string>\n}\n\nexport interface Order {\n orderId: string\n marketplace: MarketplaceKind\n side: OrderSide\n status: OrderStatus\n chainId: number\n collectionContractAddress: string\n tokenId: string\n createdBy: string\n priceAmount: string\n priceAmountFormatted: string\n priceAmountNet: string\n priceAmountNetFormatted: string\n priceCurrencyAddress: string\n priceDecimals: number\n priceUSD: number\n quantityInitial: string\n quantityInitialFormatted: string\n quantityRemaining: string\n quantityRemainingFormatted: string\n quantityAvailable: string\n quantityAvailableFormatted: string\n quantityDecimals: number\n feeBps: number\n feeBreakdown: Array<FeeBreakdown>\n validFrom: string\n validUntil: string\n blockNumber: number\n orderCreatedAt?: string\n orderUpdatedAt?: string\n createdAt: string\n updatedAt: string\n deletedAt?: string\n}\n\nexport interface FeeBreakdown {\n kind: string\n recipientAddress: string\n bps: number\n}\n\nexport interface CollectibleOrder {\n metadata: TokenMetadata\n order?: Order\n}\n\nexport interface OrderFilter {\n createdBy?: Array<string>\n marketplace?: Array<MarketplaceKind>\n currencies?: Array<string>\n}\n\nexport interface Activity {\n type: string\n fromAddress: string\n toAddress: string\n txHash: string\n timestamp: number\n tokenId: string\n tokenImage: string\n tokenName: string\n currency?: Currency\n}\n\nexport interface Collection {\n status: CollectionStatus\n chainId: number\n contractAddress: string\n contractType: ContractType\n tokenQuantityDecimals: number\n config: CollectionConfig\n createdAt: string\n updatedAt: string\n deletedAt?: string\n}\n\nexport interface CollectionConfig {\n lastSynced: {[key: string]: CollectionLastSynced}\n collectiblesSynced: string\n}\n\nexport interface CollectionLastSynced {\n allOrders: string\n newOrders: string\n}\n\nexport interface Project {\n projectId: number\n chainId: number\n contractAddress: string\n status: ProjectStatus\n createdAt: string\n updatedAt: string\n deletedAt?: string\n}\n\nexport interface Collectible {\n chainId: number\n contractAddress: string\n status: CollectibleStatus\n tokenId: string\n createdAt: string\n updatedAt: string\n deletedAt?: string\n}\n\nexport interface Currency {\n chainId: number\n contractAddress: string\n name: string\n symbol: string\n decimals: number\n imageUrl: string\n exchangeRate: number\n defaultChainCurrency: boolean\n nativeCurrency: boolean\n createdAt: string\n updatedAt: string\n deletedAt?: string\n}\n\nexport interface OrderData {\n orderId: string\n quantity: string\n}\n\nexport interface AdditionalFee {\n amount: string\n receiver: string\n}\n\nexport interface Step {\n id: StepType\n data: string\n to: string\n value: string\n signature?: Signature\n post?: PostRequest\n executeType?: ExecuteType\n}\n\nexport interface PostRequest {\n endpoint: string\n method: string\n body: any\n}\n\nexport interface CreateReq {\n tokenId: string\n quantity: string\n expiry: string\n currencyAddress: string\n pricePerToken: string\n}\n\nexport interface GetOrdersInput {\n contractAddress: string\n orderId: string\n marketplace: MarketplaceKind\n}\n\nexport interface Signature {\n domain: Domain\n types: any\n primaryType: string\n value: any\n}\n\nexport interface Domain {\n name: string\n version: string\n chainId: number\n verifyingContract: string\n}\n\nexport interface CheckoutOptionsMarketplaceOrder {\n contractAddress: string\n orderId: string\n marketplace: MarketplaceKind\n}\n\nexport interface CheckoutOptionsItem {\n tokenId: string\n quantity: string\n}\n\nexport interface CheckoutOptions {\n crypto: TransactionCrypto\n swap: Array<TransactionSwapProvider>\n nftCheckout: Array<TransactionNFTCheckoutProvider>\n onRamp: Array<TransactionOnRampProvider>\n}\n\nexport interface Admin {\n createCollection(args: CreateCollectionArgs, headers?: object, signal?: AbortSignal): Promise<CreateCollectionReturn>\n getCollection(args: GetCollectionArgs, headers?: object, signal?: AbortSignal): Promise<GetCollectionReturn>\n listCollections(args: ListCollectionsArgs, headers?: object, signal?: AbortSignal): Promise<ListCollectionsReturn>\n deleteCollection(args: DeleteCollectionArgs, headers?: object, signal?: AbortSignal): Promise<DeleteCollectionReturn>\n syncCollection(args: SyncCollectionArgs, headers?: object, signal?: AbortSignal): Promise<SyncCollectionReturn>\n createCurrency(args: CreateCurrencyArgs, headers?: object, signal?: AbortSignal): Promise<CreateCurrencyReturn>\n createCurrencies(args: CreateCurrenciesArgs, headers?: object, signal?: AbortSignal): Promise<CreateCurrenciesReturn>\n updateCurrency(args: UpdateCurrencyArgs, headers?: object, signal?: AbortSignal): Promise<UpdateCurrencyReturn>\n listCurrencies(headers?: object, signal?: AbortSignal): Promise<ListCurrenciesReturn>\n deleteCurrency(args: DeleteCurrencyArgs, headers?: object, signal?: AbortSignal): Promise<DeleteCurrencyReturn>\n}\n\nexport interface CreateCollectionArgs {\n projectId: number\n contractAddress: string\n}\n\nexport interface CreateCollectionReturn {\n collection: Collection \n}\nexport interface GetCollectionArgs {\n projectId: number\n contractAddress: string\n}\n\nexport interface GetCollectionReturn {\n collection: Collection \n}\nexport interface ListCollectionsArgs {\n projectId: number\n page?: Page\n}\n\nexport interface ListCollectionsReturn {\n collections: Array<Collection>\n page?: Page \n}\nexport interface DeleteCollectionArgs {\n projectId: number\n contractAddress: string\n}\n\nexport interface DeleteCollectionReturn {\n collection: Collection \n}\nexport interface SyncCollectionArgs {\n projectId: number\n contractAddress: string\n}\n\nexport interface SyncCollectionReturn {\n collection: Collection \n}\nexport interface CreateCurrencyArgs {\n currency: Currency\n}\n\nexport interface CreateCurrencyReturn {\n currency: Currency \n}\nexport interface CreateCurrenciesArgs {\n currencies: Array<Currency>\n}\n\nexport interface CreateCurrenciesReturn {\n currency: {[key: string]: Currency} \n}\nexport interface UpdateCurrencyArgs {\n currency: Currency\n}\n\nexport interface UpdateCurrencyReturn {\n currency: Currency \n}\nexport interface ListCurrenciesArgs {\n}\n\nexport interface ListCurrenciesReturn {\n currencies: Array<Currency> \n}\nexport interface DeleteCurrencyArgs {\n chainId: number\n contractAddress: string\n}\n\nexport interface DeleteCurrencyReturn {\n currency: Currency \n}\n\nexport interface Marketplace {\n listCurrencies(headers?: object, signal?: AbortSignal): Promise<ListCurrenciesReturn>\n getCollectible(args: GetCollectibleArgs, headers?: object, signal?: AbortSignal): Promise<GetCollectibleReturn>\n getLowestPriceOfferForCollectible(args: GetLowestPriceOfferForCollectibleArgs, headers?: object, signal?: AbortSignal): Promise<GetLowestPriceOfferForCollectibleReturn>\n getHighestPriceOfferForCollectible(args: GetHighestPriceOfferForCollectibleArgs, headers?: object, signal?: AbortSignal): Promise<GetHighestPriceOfferForCollectibleReturn>\n getLowestPriceListingForCollectible(args: GetLowestPriceListingForCollectibleArgs, headers?: object, signal?: AbortSignal): Promise<GetLowestPriceListingForCollectibleReturn>\n getHighestPriceListingForCollectible(args: GetHighestPriceListingForCollectibleArgs, headers?: object, signal?: AbortSignal): Promise<GetHighestPriceListingForCollectibleReturn>\n listListingsForCollectible(args: ListListingsForCollectibleArgs, headers?: object, signal?: AbortSignal): Promise<ListListingsForCollectibleReturn>\n listOffersForCollectible(args: ListOffersForCollectibleArgs, headers?: object, signal?: AbortSignal): Promise<ListOffersForCollectibleReturn>\n getCollectibleLowestOffer(args: GetCollectibleLowestOfferArgs, headers?: object, signal?: AbortSignal): Promise<GetCollectibleLowestOfferReturn>\n getCollectibleHighestOffer(args: GetCollectibleHighestOfferArgs, headers?: object, signal?: AbortSignal): Promise<GetCollectibleHighestOfferReturn>\n getCollectibleLowestListing(args: GetCollectibleLowestListingArgs, headers?: object, signal?: AbortSignal): Promise<GetCollectibleLowestListingReturn>\n getCollectibleHighestListing(args: GetCollectibleHighestListingArgs, headers?: object, signal?: AbortSignal): Promise<GetCollectibleHighestListingReturn>\n listCollectibleListings(args: ListCollectibleListingsArgs, headers?: object, signal?: AbortSignal): Promise<ListCollectibleListingsReturn>\n listCollectibleOffers(args: ListCollectibleOffersArgs, headers?: object, signal?: AbortSignal): Promise<ListCollectibleOffersReturn>\n generateBuyTransaction(args: GenerateBuyTransactionArgs, headers?: object, signal?: AbortSignal): Promise<GenerateBuyTransactionReturn>\n generateSellTransaction(args: GenerateSellTransactionArgs, headers?: object, signal?: AbortSignal): Promise<GenerateSellTransactionReturn>\n generateListingTransaction(args: GenerateListingTransactionArgs, headers?: object, signal?: AbortSignal): Promise<GenerateListingTransactionReturn>\n generateOfferTransaction(args: GenerateOfferTransactionArgs, headers?: object, signal?: AbortSignal): Promise<GenerateOfferTransactionReturn>\n execute(args: ExecuteArgs, headers?: object, signal?: AbortSignal): Promise<ExecuteReturn>\n listCollectibles(args: ListCollectiblesArgs, headers?: object, signal?: AbortSignal): Promise<ListCollectiblesReturn>\n getCountOfAllCollectibles(args: GetCountOfAllCollectiblesArgs, headers?: object, signal?: AbortSignal): Promise<GetCountOfAllCollectiblesReturn>\n getCountOfFilteredCollectibles(args: GetCountOfFilteredCollectiblesArgs, headers?: object, signal?: AbortSignal): Promise<GetCountOfFilteredCollectiblesReturn>\n getFloorOrder(args: GetFloorOrderArgs, headers?: object, signal?: AbortSignal): Promise<GetFloorOrderReturn>\n listCollectiblesWithLowestListing(args: ListCollectiblesWithLowestListingArgs, headers?: object, signal?: AbortSignal): Promise<ListCollectiblesWithLowestListingReturn>\n listCollectiblesWithHighestOffer(args: ListCollectiblesWithHighestOfferArgs, headers?: object, signal?: AbortSignal): Promise<ListCollectiblesWithHighestOfferReturn>\n syncOrder(args: SyncOrderArgs, headers?: object, signal?: AbortSignal): Promise<SyncOrderReturn>\n syncOrders(args: SyncOrdersArgs, headers?: object, signal?: AbortSignal): Promise<SyncOrdersReturn>\n getOrders(args: GetOrdersArgs, headers?: object, signal?: AbortSignal): Promise<GetOrdersReturn>\n checkoutOptionsMarketplace(args: CheckoutOptionsMarketplaceArgs, headers?: object, signal?: AbortSignal): Promise<CheckoutOptionsMarketplaceReturn>\n checkoutOptionsSalesContract(args: CheckoutOptionsSalesContractArgs, headers?: object, signal?: AbortSignal): Promise<CheckoutOptionsSalesContractReturn>\n}\n\nexport interface ListCurrenciesArgs {\n}\n\nexport interface ListCurrenciesReturn {\n currencies: Array<Currency> \n}\nexport interface GetCollectibleArgs {\n contractAddress: string\n tokenId: string\n}\n\nexport interface GetCollectibleReturn {\n metadata: TokenMetadata \n}\nexport interface GetLowestPriceOfferForCollectibleArgs {\n contractAddress: string\n tokenId: string\n filter?: OrderFilter\n}\n\nexport interface GetLowestPriceOfferForCollectibleReturn {\n order: Order \n}\nexport interface GetHighestPriceOfferForCollectibleArgs {\n contractAddress: string\n tokenId: string\n filter?: OrderFilter\n}\n\nexport interface GetHighestPriceOfferForCollectibleReturn {\n order: Order \n}\nexport interface GetLowestPriceListingForCollectibleArgs {\n contractAddress: string\n tokenId: string\n filter?: OrderFilter\n}\n\nexport interface GetLowestPriceListingForCollectibleReturn {\n order: Order \n}\nexport interface GetHighestPriceListingForCollectibleArgs {\n contractAddress: string\n tokenId: string\n filter?: OrderFilter\n}\n\nexport interface GetHighestPriceListingForCollectibleReturn {\n order: Order \n}\nexport interface ListListingsForCollectibleArgs {\n contractAddress: string\n tokenId: string\n filter?: OrderFilter\n page?: Page\n}\n\nexport interface ListListingsForCollectibleReturn {\n listings: Array<Order>\n page?: Page \n}\nexport interface ListOffersForCollectibleArgs {\n contractAddress: string\n tokenId: string\n filter?: OrderFilter\n page?: Page\n}\n\nexport interface ListOffersForCollectibleReturn {\n offers: Array<Order>\n page?: Page \n}\nexport interface GetCollectibleLowestOfferArgs {\n contractAddress: string\n tokenId: string\n filter?: OrderFilter\n}\n\nexport interface GetCollectibleLowestOfferReturn {\n order?: Order \n}\nexport interface GetCollectibleHighestOfferArgs {\n contractAddress: string\n tokenId: string\n filter?: OrderFilter\n}\n\nexport interface GetCollectibleHighestOfferReturn {\n order?: Order \n}\nexport interface GetCollectibleLowestListingArgs {\n contractAddress: string\n tokenId: string\n filters?: OrderFilter\n}\n\nexport interface GetCollectibleLowestListingReturn {\n order?: Order \n}\nexport interface GetCollectibleHighestListingArgs {\n contractAddress: string\n tokenId: string\n filter?: OrderFilter\n}\n\nexport interface GetCollectibleHighestListingReturn {\n order?: Order \n}\nexport interface ListCollectibleListingsArgs {\n contractAddress: string\n tokenId: string\n filter?: OrderFilter\n page?: Page\n}\n\nexport interface ListCollectibleListingsReturn {\n listings: Array<Order>\n page?: Page \n}\nexport interface ListCollectibleOffersArgs {\n contractAddress: string\n tokenId: string\n filter?: OrderFilter\n page?: Page\n}\n\nexport interface ListCollectibleOffersReturn {\n offers: Array<Order>\n page?: Page \n}\nexport interface GenerateBuyTransactionArgs {\n collectionAddress: string\n buyer: string\n marketplace: MarketplaceKind\n ordersData: Array<OrderData>\n additionalFees: Array<AdditionalFee>\n walletType?: WalletKind\n}\n\nexport interface GenerateBuyTransactionReturn {\n steps: Array<Step> \n}\nexport interface GenerateSellTransactionArgs {\n collectionAddress: string\n seller: string\n marketplace: MarketplaceKind\n ordersData: Array<OrderData>\n additionalFees: Array<AdditionalFee>\n walletType?: WalletKind\n}\n\nexport interface GenerateSellTransactionReturn {\n steps: Array<Step> \n}\nexport interface GenerateListingTransactionArgs {\n collectionAddress: string\n owner: string\n contractType: ContractType\n orderbook: OrderbookKind\n listing: CreateReq\n walletType?: WalletKind\n}\n\nexport interface GenerateListingTransactionReturn {\n steps: Array<Step> \n}\nexport interface GenerateOfferTransactionArgs {\n collectionAddress: string\n maker: string\n contractType: ContractType\n orderbook: OrderbookKind\n offer: CreateReq\n walletType?: WalletKind\n}\n\nexport interface GenerateOfferTransactionReturn {\n steps: Array<Step> \n}\nexport interface ExecuteArgs {\n signature: string\n executeType: ExecuteType\n body: any\n}\n\nexport interface ExecuteReturn {\n orderId: string \n}\nexport interface ListCollectiblesArgs {\n side: OrderSide\n contractAddress: string\n filter?: CollectiblesFilter\n page?: Page\n}\n\nexport interface ListCollectiblesReturn {\n collectibles: Array<CollectibleOrder>\n page?: Page \n}\nexport interface GetCountOfAllCollectiblesArgs {\n contractAddress: string\n}\n\nexport interface GetCountOfAllCollectiblesReturn {\n count: number \n}\nexport interface GetCountOfFilteredCollectiblesArgs {\n side: OrderSide\n contractAddress: string\n filter?: CollectiblesFilter\n}\n\nexport interface GetCountOfFilteredCollectiblesReturn {\n count: number \n}\nexport interface GetFloorOrderArgs {\n contractAddress: string\n filter?: CollectiblesFilter\n}\n\nexport interface GetFloorOrderReturn {\n collectible: CollectibleOrder \n}\nexport interface ListCollectiblesWithLowestListingArgs {\n contractAddress: string\n filter?: CollectiblesFilter\n page?: Page\n}\n\nexport interface ListCollectiblesWithLowestListingReturn {\n collectibles: Array<CollectibleOrder>\n page?: Page \n}\nexport interface ListCollectiblesWithHighestOfferArgs {\n contractAddress: string\n filter?: CollectiblesFilter\n page?: Page\n}\n\nexport interface ListCollectiblesWithHighestOfferReturn {\n collectibles: Array<CollectibleOrder>\n page?: Page \n}\nexport interface SyncOrderArgs {\n order: Order\n}\n\nexport interface SyncOrderReturn { \n}\nexport interface SyncOrdersArgs {\n orders: Array<Order>\n}\n\nexport interface SyncOrdersReturn { \n}\nexport interface GetOrdersArgs {\n input: Array<GetOrdersInput>\n page?: Page\n}\n\nexport interface GetOrdersReturn {\n orders: Array<Order>\n page?: Page \n}\nexport interface CheckoutOptionsMarketplaceArgs {\n wallet: string\n orders: Array<CheckoutOptionsMarketplaceOrder>\n additionalFee: number\n}\n\nexport interface CheckoutOptionsMarketplaceReturn {\n options: CheckoutOptions \n}\nexport interface CheckoutOptionsSalesContractArgs {\n wallet: string\n contractAddress: string\n collectionAddress: string\n items: Array<CheckoutOptionsItem>\n}\n\nexport interface CheckoutOptionsSalesContractReturn {\n options: CheckoutOptions \n}\n\n\n \n//\n// Client\n//\nexport class Admin implements Admin {\n protected hostname: string\n protected fetch: Fetch\n protected path = '/rpc/Admin/'\n\n constructor(hostname: string, fetch: Fetch) {\n this.hostname = hostname.replace(/\\/*$/, '')\n this.fetch = (input: RequestInfo, init?: RequestInit) => fetch(input, init)\n }\n\n private url(name: string): string {\n return this.hostname + this.path + name\n }\n \n createCollection = (args: CreateCollectionArgs, headers?: object, signal?: AbortSignal): Promise<CreateCollectionReturn> => {\n return this.fetch(\n this.url('CreateCollection'),\n createHTTPRequest(args, headers, signal)).then((res) => {\n return buildResponse(res).then(_data => {\n return {\n collection: <Collection>(_data.collection),\n }\n })\n }, (error) => {\n throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error.message || ''}` })\n })\n }\n \n getCollection = (args: GetCollectionArgs, headers?: object, signal?: AbortSignal): Promise<GetCollectionReturn> => {\n return this.fetch(\n this.url('GetCollection'),\n createHTTPRequest(args, headers, signal)).then((res) => {\n return buildResponse(res).then(_data => {\n return {\n collection: <Collection>(_data.collection),\n }\n })\n }, (error) => {\n throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error.message || ''}` })\n })\n }\n \n listCollections = (args: ListCollectionsArgs, headers?: object, signal?: AbortSignal): Promise<ListCollectionsReturn> => {\n return this.fetch(\n this.url('ListCollections'),\n createHTTPRequest(args, headers, signal)).then((res) => {\n return buildResponse(res).then(_data => {\n return {\n collections: <Array<Collection>>(_data.collections),\n page: <Page>(_data.page),\n }\n })\n }, (error) => {\n throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error.message || ''}` })\n })\n }\n \n deleteCollection = (args: DeleteCollectionArgs, headers?: object, signal?: AbortSignal): Promise<DeleteCollectionReturn> => {\n return this.fetch(\n this.url('DeleteCollection'),\n createHTTPRequest(args, headers, signal)).then((res) => {\n return buildResponse(res).then(_data => {\n return {\n collection: <Collection>(_data.collection),\n }\n })\n }, (error) => {\n throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error.message || ''}` })\n })\n }\n \n syncCollection = (args: SyncCollectionArgs, headers?: object, signal?: AbortSignal): Promise<SyncCollectionReturn> => {\n return this.fetch(\n this.url('SyncCollection'),\n createHTTPRequest(args, headers, signal)).then((res) => {\n return buildResponse(res).then(_data => {\n return {\n collection: <Collection>(_data.collection),\n }\n })\n }, (error) => {\n throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error.message || ''}` })\n })\n }\n \n createCurrency = (args: CreateCurrencyArgs, headers?: object, signal?: AbortSignal): Promise<CreateCurrencyReturn> => {\n return this.fetch(\n this.url('CreateCurrency'),\n createHTTPRequest(args, headers, signal)).then((res) => {\n return buildResponse(res).then(_data => {\n return {\n currency: <Currency>(_data.currency),\n }\n })\n }, (error) => {\n throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error.message || ''}` })\n })\n }\n \n createCurrencies = (args: CreateCurrenciesArgs, headers?: object, signal?: AbortSignal): Promise<CreateCurrenciesReturn> => {\n return this.fetch(\n this.url('CreateCurrencies'),\n createHTTPRequest(args, headers, signal)).then((res) => {\n return buildResponse(res).then(_data => {\n return {\n currency: <{[key: string]: Currency}>(_data.currency),\n }\n })\n }, (error) => {\n throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error.message || ''}` })\n })\n }\n \n updateCurrency = (args: UpdateCurrencyArgs, headers?: object, signal?: AbortSignal): Promise<UpdateCurrencyReturn> => {\n return this.fetch(\n this.url('UpdateCurrency'),\n createHTTPRequest(args, headers, signal)).then((res) => {\n return buildResponse(res).then(_data => {\n return {\n currency: <Currency>(_data.currency),\n }\n })\n }, (error) => {\n throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error.message || ''}` })\n })\n }\n \n listCurrencies = (headers?: object, signal?: AbortSignal): Promise<ListCurrenciesReturn> => {\n return this.fetch(\n this.url('ListCurrencies'),\n createHTTPRequest({}, headers, signal)\n ).then((res) => {\n return buildResponse(res).then(_data => {\n return {\n currencies: <Array<Currency>>(_data.currencies),\n }\n })\n }, (error) => {\n throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error.message || ''}` })\n })\n }\n \n deleteCurrency = (args: DeleteCurrencyArgs, headers?: object, signal?: AbortSignal): Promise<DeleteCurrencyReturn> => {\n return this.fetch(\n this.url('DeleteCurrency'),\n createHTTPRequest(args, headers, signal)).then((res) => {\n return buildResponse(res).then(_data => {\n return {\n currency: <Currency>(_data.currency),\n }\n })\n }, (error) => {\n throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error.message || ''}` })\n })\n }\n \n}\nexport class Marketplace implements Marketplace {\n protected hostname: string\n protected fetch: Fetch\n protected path = '/rpc/Marketplace/'\n\n constructor(hostname: string, fetch: Fetch) {\n this.hostname = hostname.replace(/\\/*$/, '')\n this.fetch = (input: RequestInfo, init?: RequestInit) => fetch(input, init)\n }\n\n private url(name: string): string {\n return this.hostname + this.path + name\n }\n \n listCurrencies = (headers?: object, signal?: AbortSignal): Promise<ListCurrenciesReturn> => {\n return this.fetch(\n this.url('ListCurrencies'),\n createHTTPRequest({}, headers, signal)\n ).then((res) => {\n return buildResponse(res).then(_data => {\n return {\n currencies: <Array<Currency>>(_data.currencies),\n }\n })\n }, (error) => {\n throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error.message || ''}` })\n })\n }\n \n getCollectible = (args: GetCollectibleArgs, headers?: object, signal?: AbortSignal): Promise<GetCollectibleReturn> => {\n return this.fetch(\n this.url('GetCollectible'),\n createHTTPRequest(args, headers, signal)).then((res) => {\n return buildResponse(res).then(_data => {\n return {\n metadata: <TokenMetadata>(_data.metadata),\n }\n })\n }, (error) => {\n throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error.message || ''}` })\n })\n }\n \n getLowestPriceOfferForCollectible = (args: GetLowestPriceOfferForCollectibleArgs, headers?: object, signal?: AbortSignal): Promise<GetLowestPriceOfferForCollectibleReturn> => {\n return this.fetch(\n this.url('GetLowestPriceOfferForCollectible'),\n createHTTPRequest(args, headers, signal)).then((res) => {\n return buildResponse(res).then(_data => {\n return {\n order: <Order>(_data.order),\n }\n })\n }, (error) => {\n throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error.message || ''}` })\n })\n }\n \n getHighestPriceOfferForCollectible = (args: GetHighestPriceOfferForCollectibleArgs, headers?: object, signal?: AbortSignal): Promise<GetHighestPriceOfferForCollectibleReturn> => {\n return this.fetch(\n this.url('GetHighestPriceOfferForCollectible'),\n createHTTPRequest(args, headers, signal)).then((res) => {\n return buildResponse(res).then(_data => {\n return {\n order: <Order>(_data.order),\n }\n })\n }, (error) => {\n throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error.message || ''}` })\n })\n }\n \n getLowestPriceListingForCollectible = (args: GetLowestPriceListingForCollectibleArgs, headers?: object, signal?: AbortSignal): Promise<GetLowestPriceListingForCollectibleReturn> => {\n return this.fetch(\n this.url('GetLowestPriceListingForCollectible'),\n createHTTPRequest(args, headers, signal)).then((res) => {\n return buildResponse(res).then(_data => {\n return {\n order: <Order>(_data.order),\n }\n })\n }, (error) => {\n throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error.message || ''}` })\n })\n }\n \n getHighestPriceListingForCollectible = (args: GetHighestPriceListingForCollectibleArgs, headers?: object, signal?: AbortSignal): Promise<GetHighestPriceListingForCollectibleReturn> => {\n return this.fetch(\n this.url('GetHighestPriceListingForCollectible'),\n createHTTPRequest(args, headers, signal)).then((res) => {\n return buildResponse(res).then(_data => {\n return {\n order: <Order>(_data.order),\n }\n })\n }, (error) => {\n throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error.message || ''}` })\n })\n }\n \n listListingsForCollectible = (args: ListListingsForCollectibleArgs, headers?: object, signal?: AbortSignal): Promise<ListListingsForCollectibleReturn> => {\n return this.fetch(\n this.url('ListListingsForCollectible'),\n createHTTPRequest(args, headers, signal)).then((res) => {\n return buildResponse(res).then(_data => {\n return {\n listings: <Array<Order>>(_data.listings),\n page: <Page>(_data.page),\n }\n })\n }, (error) => {\n throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error.message || ''}` })\n })\n }\n \n listOffersForCollectible = (args: ListOffersForCollectibleArgs, headers?: object, signal?: AbortSignal): Promise<ListOffersForCollectibleReturn> => {\n return this.fetch(\n this.url('ListOffersForCollectible'),\n createHTTPRequest(args, headers, signal)).then((res) => {\n return buildResponse(res).then(_data => {\n return {\n offers: <Array<Order>>(_data.offers),\n page: <Page>(_data.page),\n }\n })\n }, (error) => {\n throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error.message || ''}` })\n })\n }\n \n getCollectibleLowestOffer = (args: GetCollectibleLowestOfferArgs, headers?: object, signal?: AbortSignal): Promise<GetCollectibleLowestOfferReturn> => {\n return this.fetch(\n this.url('GetCollectibleLowestOffer'),\n createHTTPRequest(args, headers, signal)).then((res) => {\n return buildResponse(res).then(_data => {\n return {\n order: <Order>(_data.order),\n }\n })\n }, (error) => {\n throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error.message || ''}` })\n })\n }\n \n getCollectibleHighestOffer = (args: GetCollectibleHighestOfferArgs, headers?: object, signal?: AbortSignal): Promise<GetCollectibleHighestOfferReturn> => {\n return this.fetch(\n this.url('GetCollectibleHighestOffer'),\n createHTTPRequest(args, headers, signal)).then((res) => {\n return buildResponse(res).then(_data => {\n return {\n order: <Order>(_data.order),\n }\n })\n }, (error) => {\n throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error.message || ''}` })\n })\n }\n \n getCollectibleLowestListing = (args: GetCollectibleLowestListingArgs, headers?: object, signal?: AbortSignal): Promise<GetCollectibleLowestListingReturn> => {\n return this.fetch(\n this.url('GetCollectibleLowestListing'),\n createHTTPRequest(args, headers, signal)).then((res) => {\n return buildResponse(res).then(_data => {\n return {\n order: <Order>(_data.order),\n }\n })\n }, (error) => {\n throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error.message || ''}` })\n })\n }\n \n getCollectibleHighestListing = (args: GetCollectibleHighestListingArgs, headers?: object, signal?: AbortSignal): Promise<GetCollectibleHighestListingReturn> => {\n return this.fetch(\n this.url('GetCollectibleHighestListing'),\n createHTTPRequest(args, headers, signal)).then((res) => {\n return buildResponse(res).then(_data => {\n return {\n order: <Order>(_data.order),\n }\n })\n }, (error) => {\n throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error.message || ''}` })\n })\n }\n \n listCollectibleListings = (args: ListCollectibleListingsArgs, headers?: object, signal?: AbortSignal): Promise<ListCollectibleListingsReturn> => {\n return this.fetch(\n this.url('ListCollectibleListings'),\n createHTTPRequest(args, headers, signal)).then((res) => {\n return buildResponse(res).then(_data => {\n return {\n listings: <Array<Order>>(_data.listings),\n page: <Page>(_data.page),\n }\n })\n }, (error) => {\n throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error.message || ''}` })\n })\n }\n \n listCollectibleOffers = (args: ListCollectibleOffersArgs, headers?: object, signal?: AbortSignal): Promise<ListCollectibleOffersReturn> => {\n return this.fetch(\n this.url('ListCollectibleOffers'),\n createHTTPRequest(args, headers, signal)).then((res) => {\n return buildResponse(res).then(_data => {\n return {\n offers: <Array<Order>>(_data.offers),\n page: <Page>(_data.page),\n }\n })\n }, (error) => {\n throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error.message || ''}` })\n })\n }\n \n generateBuyTransaction = (args: GenerateBuyTransactionArgs, headers?: object, signal?: AbortSignal): Promise<GenerateBuyTransactionReturn> => {\n return this.fetch(\n this.url('GenerateBuyTransaction'),\n createHTTPRequest(args, headers, signal)).then((res) => {\n return buildResponse(res).then(_data => {\n return {\n steps: <Array<Step>>(_data.steps),\n }\n })\n }, (error) => {\n throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error.message || ''}` })\n })\n }\n \n generateSellTransaction = (args: GenerateSellTransactionArgs, headers?: object, signal?: AbortSignal): Promise<GenerateSellTransactionReturn> => {\n return this.fetch(\n this.url('GenerateSellTransaction'),\n createHTTPRequest(args, headers, signal)).then((res) => {\n return buildResponse(res).then(_data => {\n return {\n steps: <Array<Step>>(_data.steps),\n }\n })\n }, (error) => {\n throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error.message || ''}` })\n })\n }\n \n generateListingTransaction = (args: GenerateListingTransactionArgs, headers?: object, signal?: AbortSignal): Promise<GenerateListingTransactionReturn> => {\n return this.fetch(\n this.url('GenerateListingTransaction'),\n createHTTPRequest(args, headers, signal)).then((res) => {\n return buildResponse(res).then(_data => {\n return {\n steps: <Array<Step>>(_data.steps),\n }\n })\n }, (error) => {\n throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error.message || ''}` })\n })\n }\n \n generateOfferTransaction = (args: GenerateOfferTransactionArgs, headers?: object, signal?: AbortSignal): Promise<GenerateOfferTransactionReturn> => {\n return this.fetch(\n this.url('GenerateOfferTransaction'),\n createHTTPRequest(args, headers, signal)).then((res) => {\n return buildResponse(res).then(_data => {\n return {\n steps: <Array<Step>>(_data.steps),\n }\n })\n }, (error) => {\n throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error.message || ''}` })\n })\n }\n \n execute = (args: ExecuteArgs, headers?: object, signal?: AbortSignal): Promise<ExecuteReturn> => {\n return this.fetch(\n this.url('Execute'),\n createHTTPRequest(args, headers, signal)).then((res) => {\n return buildResponse(res).then(_data => {\n return {\n orderId: <string>(_data.orderId),\n }\n })\n }, (error) => {\n throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error.message || ''}` })\n })\n }\n \n listCollectibles = (args: ListCollectiblesArgs, headers?: object, signal?: AbortSignal): Promise<ListCollectiblesReturn> => {\n return this.fetch(\n this.url('ListCollectibles'),\n createHTTPRequest(args, headers, signal)).then((res) => {\n return buildResponse(res).then(_data => {\n return {\n collectibles: <Array<CollectibleOrder>>(_data.collectibles),\n page: <Page>(_data.page),\n }\n })\n }, (error) => {\n throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error.message || ''}` })\n })\n }\n \n getCountOfAllCollectibles = (args: GetCountOfAllCollectiblesArgs, headers?: object, signal?: AbortSignal): Promise<GetCountOfAllCollectiblesReturn> => {\n return this.fetch(\n this.url('GetCountOfAllCollectibles'),\n createHTTPRequest(args, headers, signal)).then((res) => {\n return buildResponse(res).then(_data => {\n return {\n count: <number>(_data.count),\n }\n })\n }, (error) => {\n throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error.message || ''}` })\n })\n }\n \n getCountOfFilteredCollectibles = (args: GetCountOfFilteredCollectiblesArgs, headers?: object, signal?: AbortSignal): Promise<GetCountOfFilteredCollectiblesReturn> => {\n return this.fetch(\n this.url('GetCountOfFilteredCollectibles'),\n createHTTPRequest(args, headers, signal)).then((res) => {\n return buildResponse(res).then(_data => {\n return {\n count: <number>(_data.count),\n }\n })\n }, (error) => {\n throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error.message || ''}` })\n })\n }\n \n getFloorOrder = (args: GetFloorOrderArgs, headers?: object, signal?: AbortSignal): Promise<GetFloorOrderReturn> => {\n return this.fetch(\n this.url('GetFloorOrder'),\n createHTTPRequest(args, headers, signal)).then((res) => {\n return buildResponse(res).then(_data => {\n return {\n collectible: <CollectibleOrder>(_data.collectible),\n }\n })\n }, (error) => {\n throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error.message || ''}` })\n })\n }\n \n listCollectiblesWithLowestListing = (args: ListCollectiblesWithLowestListingArgs, headers?: object, signal?: AbortSignal): Promise<ListCollectiblesWithLowestListingReturn> => {\n return this.fetch(\n this.url('ListCollectiblesWithLowestListing'),\n createHTTPRequest(args, headers, signal)).then((res) => {\n return buildResponse(res).then(_data => {\n return {\n collectibles: <Array<CollectibleOrder>>(_data.collectibles),\n page: <Page>(_data.page),\n }\n })\n }, (error) => {\n throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error.message || ''}` })\n })\n }\n \n listCollectiblesWithHighestOffer = (args: ListCollectiblesWithHighestOfferArgs, headers?: object, signal?: AbortSignal): Promise<ListCollectiblesWithHighestOfferReturn> => {\n return this.fetch(\n this.url('ListCollectiblesWithHighestOffer'),\n createHTTPRequest(args, headers, signal)).then((res) => {\n return buildResponse(res).then(_data => {\n return {\n collectibles: <Array<CollectibleOrder>>(_data.collectibles),\n page: <Page>(_data.page),\n }\n })\n }, (error) => {\n throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error.message || ''}` })\n })\n }\n \n syncOrder = (args: SyncOrderArgs, headers?: object, signal?: AbortSignal): Promise<SyncOrderReturn> => {\n return this.fetch(\n this.url('SyncOrder'),\n createHTTPRequest(args, headers, signal)).then((res) => {\n return buildResponse(res).then(_data => {\n return {}\n })\n }, (error) => {\n throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error.message || ''}` })\n })\n }\n \n syncOrders = (args: SyncOrdersArgs, headers?: object, signal?: AbortSignal): Promise<SyncOrdersReturn> => {\n return this.fetch(\n this.url('SyncOrders'),\n createHTTPRequest(args, headers, signal)).then((res) => {\n return buildResponse(res).then(_data => {\n return {}\n })\n }, (error) => {\n throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error.message || ''}` })\n })\n }\n \n getOrders = (args: GetOrdersArgs, headers?: object, signal?: AbortSignal): Promise<GetOrdersReturn> => {\n return this.fetch(\n this.url('GetOrders'),\n createHTTPRequest(args, headers, signal)).then((res) => {\n return buildResponse(res).then(_data => {\n return {\n orders: <Array<Order>>(_data.orders),\n page: <Page>(_data.page),\n }\n })\n }, (error) => {\n throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error.message || ''}` })\n })\n }\n \n checkoutOptionsMarketplace = (args: CheckoutOptionsMarketplaceArgs, headers?: object, signal?: AbortSignal): Promise<CheckoutOptionsMarketplaceReturn> => {\n return this.fetch(\n this.url('CheckoutOptionsMarketplace'),\n createHTTPRequest(args, headers, signal)).then((res) => {\n return buildResponse(res).then(_data => {\n return {\n options: <CheckoutOptions>(_data.options),\n }\n })\n }, (error) => {\n throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error.message || ''}` })\n })\n }\n \n checkoutOptionsSalesContract = (args: CheckoutOptionsSalesContractArgs, headers?: object, signal?: AbortSignal): Promise<CheckoutOptionsSalesContractReturn> => {\n return this.fetch(\n this.url('CheckoutOptionsSalesContract'),\n createHTTPRequest(args, headers, signal)).then((res) => {\n return buildResponse(res).then(_data => {\n return {\n options: <CheckoutOptions>(_data.options),\n }\n })\n }, (error) => {\n throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error.message || ''}` })\n })\n }\n \n}\n\n const createHTTPRequest = (body: object = {}, headers: object = {}, signal: AbortSignal | null = null): object => {\n const reqHeaders: {[key: string]: string} = { ...headers, 'Content-Type': 'application/json' }\n reqHeaders[WebrpcHeader] = WebrpcHeaderValue\n\n return {\n method: 'POST',\n headers: reqHeaders,\n body: JSON.stringify(body || {}),\n signal\n }\n}\n\nconst buildResponse = (res: Response): Promise<any> => {\n return res.text().then(text => {\n let data\n try {\n data = JSON.parse(text)\n } catch(error) {\n let message = ''\n if (error instanceof Error) {\n message = error.message\n }\n throw WebrpcBadResponseError.new({\n status: res.status,\n cause: `JSON.parse(): ${message}: response text: ${text}`},\n )\n }\n if (!res.ok) {\n const code: number = (typeof data.code === 'number') ? data.code : 0\n throw (webrpcErrorByCode[code] || WebrpcError).new(data)\n }\n return data\n })\n}\n\n//\n// Errors\n//\n\nexport class WebrpcError extends Error {\n name: string\n code: number\n message: string\n status: number\n cause?: string\n\n /** @deprecated Use message instead of msg. Deprecated in webrpc v0.11.0. */\n msg: string\n\n constructor(name: string, code: number, message: string, status: number, cause?: string) {\n super(message)\n this.name = name || 'WebrpcError'\n this.code = typeof code === 'number' ? code : 0\n this.message = message || `endpoint error ${this.code}`\n this.msg = this.message\n this.status = typeof status === 'number' ? status : 0\n this.cause = cause\n Object.setPrototypeOf(this, WebrpcError.prototype)\n }\n\n static new(payload: any): WebrpcError {\n return new this(payload.error, payload.code, payload.message || payload.msg, payload.status, payload.cause)\n }\n}\n\n// Webrpc errors\n\nexport class WebrpcEndpointError extends WebrpcError {\n constructor(\n name: string = 'WebrpcEndpoint',\n code: number = 0,\n message: string = 'endpoint error',\n status: number = 0,\n cause?: string\n ) {\n super(name, code, message, status, cause)\n Object.setPrototypeOf(this, WebrpcEndpointError.prototype)\n }\n}\n\nexport class WebrpcRequestFailedError extends WebrpcError {\n constructor(\n name: string = 'WebrpcRequestFailed',\n code: number = -1,\n message: string = 'request failed',\n status: number = 0,\n cause?: string\n ) {\n super(name, code, message, status, cause)\n Object.setPrototypeOf(this, WebrpcRequestFailedError.prototype)\n }\n}\n\nexport class WebrpcBadRouteError extends WebrpcError {\n constructor(\n name: string = 'WebrpcBadRoute',\n code: number = -2,\n message: string = 'bad route',\n status: number = 0,\n cause?: string\n ) {\n super(name, code, message, status, cause)\n Object.setPrototypeOf(this, WebrpcBadRouteError.prototype)\n }\n}\n\nexport class WebrpcBadMethodError extends WebrpcError {\n constructor(\n name: string = 'WebrpcBadMethod',\n code: number = -3,\n message: string = 'bad method',\n status: number = 0,\n cause?: string\n ) {\n super(name, code, message, status, cause)\n Object.setPrototypeOf(this, WebrpcBadMethodError.prototype)\n }\n}\n\nexport class WebrpcBadRequestError extends WebrpcError {\n constructor(\n name: string = 'WebrpcBadRequest',\n code: number = -4,\n message: string = 'bad request',\n status: number = 0,\n cause?: string\n ) {\n super(name, code, message, status, cause)\n Object.setPrototypeOf(this, WebrpcBadRequestError.prototype)\n }\n}\n\nexport class WebrpcBadResponseError extends WebrpcError {\n constructor(\n name: string = 'WebrpcBadResponse',\n code: number = -5,\n message: string = 'bad response',\n status: number = 0,\n cause?: string\n ) {\n super(name, code, message, status, cause)\n Object.setPrototypeOf(this, WebrpcBadResponseError.prototype)\n }\n}\n\nexport class WebrpcServerPanicError extends WebrpcError {\n constructor(\n name: string = 'WebrpcServerPanic',\n code: number = -6,\n message: string = 'server panic',\n status: number = 0,\n cause?: string\n ) {\n super(name, code, message, status, cause)\n Object.setPrototypeOf(this, WebrpcServerPanicError.prototype)\n }\n}\n\nexport class WebrpcInternalErrorError extends WebrpcError {\n constructor(\n name: string = 'WebrpcInternalError',\n code: number = -7,\n message: string = 'internal error',\n status: number = 0,\n cause?: string\n ) {\n super(name, code, message, status, cause)\n Object.setPrototypeOf(this, WebrpcInternalErrorError.prototype)\n }\n}\n\nexport class WebrpcClientDisconnectedError extends WebrpcError {\n constructor(\n name: string = 'WebrpcClientDisconnected',\n code: number = -8,\n message: string = 'client disconnected',\n status: number = 0,\n cause?: string\n ) {\n super(name, code, message, status, cause)\n Object.setPrototypeOf(this, WebrpcClientDisconnectedError.prototype)\n }\n}\n\nexport class WebrpcStreamLostError extends WebrpcError {\n constructor(\n name: string = 'WebrpcStreamLost',\n code: number = -9,\n message: string = 'stream lost',\n status: number = 0,\n cause?: string\n ) {\n super(name, code, message, status, cause)\n Object.setPrototypeOf(this, WebrpcStreamLostError.prototype)\n }\n}\n\nexport class WebrpcStreamFinishedError extends WebrpcError {\n constructor(\n name: string = 'WebrpcStreamFinished',\n code: number = -10,\n message: string = 'stream finished',\n status: number = 0,\n cause?: string\n ) {\n super(name, code, message, status, cause)\n Object.setPrototypeOf(this, WebrpcStreamFinishedError.prototype)\n }\n}\n\n\n// Schema errors\n\nexport class UnauthorizedError extends WebrpcError {\n constructor(\n name: string = 'Unauthorized',\n code: number = 1000,\n message: string = 'Unauthorized access',\n status: number = 0,\n cause?: string\n ) {\n super(name, code, message, status, cause)\n Object.setPrototypeOf(this, UnauthorizedError.prototype)\n }\n}\n\nexport class PermissionDeniedError extends WebrpcError {\n constructor(\n name: string = 'PermissionDenied',\n code: number = 1001,\n message: string = 'Permission denied',\n status: number = 0,\n cause?: string\n ) {\n super(name, code, message, status, cause)\n Object.setPrototypeOf(this, PermissionDeniedError.prototype)\n }\n}\n\nexport class SessionExpiredError extends WebrpcError {\n constructor(\n name: string = 'SessionExpired',\n code: number = 1002,\n message: string = 'Session expired',\n status: number = 0,\n cause?: string\n ) {\n super(name, code, message, status, cause)\n Object.setPrototypeOf(this, SessionExpiredError.prototype)\n }\n}\n\nexport class MethodNotFoundError extends WebrpcError {\n constructor(\n name: string = 'MethodNotFound',\n code: number = 1003,\n message: string = 'Method not found',\n status: number = 0,\n cause?: string\n ) {\n super(name, code, message, status, cause)\n Object.setPrototypeOf(this, MethodNotFoundError.prototype)\n }\n}\n\nexport class TimeoutError extends WebrpcError {\n constructor(\n name: string = 'Timeout',\n code: number = 2000,\n message: string = 'Request timed out',\n status: number = 0,\n cause?: string\n ) {\n super(name, code, message, status, cause)\n Object.setPrototypeOf(this, TimeoutError.prototype)\n }\n}\n\nexport class InvalidArgumentError extends WebrpcError {\n constructor(\n name: string = 'InvalidArgument',\n code: number = 2001,\n message: string = 'Invalid argument',\n status: number = 0,\n cause?: string\n ) {\n super(name, code, message, status, cause)\n Object.setPrototypeOf(this, InvalidArgumentError.prototype)\n }\n}\n\nexport class NotFoundError extends WebrpcError {\n constructor(\n name: string = 'NotFound',\n code: number = 3000,\n message: string = 'Resource not found',\n status: number = 0,\n cause?: string\n ) {\n super(name, code, message, status, cause)\n Object.setPrototypeOf(this, NotFoundError.prototype)\n }\n}\n\nexport class UserNotFoundError extends WebrpcError {\n constructor(\n name: string = 'UserNotFound',\n code: number = 3001,\n message: string = 'User not found',\n status: number = 0,\n cause?: string\n ) {\n super(name, code, message, status, cause)\n Object.setPrototypeOf(this, UserNotFoundError.prototype)\n }\n}\n\nexport class ProjectNotFoundError extends WebrpcError {\n constructor(\n name: string = 'ProjectNotFound',\n code: number = 3002,\n message: string = 'Project not found',\n status: number = 0,\n cause?: string\n ) {\n super(name, code, message, status, cause)\n Object.setPrototypeOf(this, ProjectNotFoundError.prototype)\n }\n}\n\nexport class InvalidTierError extends WebrpcError {\n constructor(\n name: string = 'InvalidTier',\n code: number = 3003,\n message: string = 'Invalid subscription tier',\n status: number = 0,\n cause?: string\n ) {\n super(name, code, message, status, cause)\n Object.setPrototypeOf(this, InvalidTierError.prototype)\n }\n}\n\nexport class ProjectLimitReachedError extends WebrpcError {\n constructor(\n name: string = 'ProjectLimitReached',\n code: number = 3005,\n message: string = 'Project limit reached',\n status: number = 0,\n cause?: string\n ) {\n super(name, code, message, status, cause)\n Object.setPrototypeOf(this, ProjectLimitReachedError.prototype)\n }\n}\n\nexport class NotImplementedError extends WebrpcError {\n constructor(\n name: string = 'NotImplemented',\n code: number = 9999,\n message: string = 'Not Implemented',\n status: number = 0,\n cause?: string\n ) {\n super(name, code, message, status, cause)\n Object.setPrototypeOf(this, NotImplementedError.prototype)\n }\n}\n\n\nexport enum errors {\n WebrpcEndpoint = 'WebrpcEndpoint',\n WebrpcRequestFailed = 'WebrpcRequestFailed',\n WebrpcBadRoute = 'WebrpcBadRoute',\n WebrpcBadMethod = 'WebrpcBadMethod',\n WebrpcBadRequest = 'WebrpcBadRequest',\n WebrpcBadResponse = 'WebrpcBadResponse',\n WebrpcServerPanic = 'WebrpcServerPanic',\n WebrpcInternalError = 'WebrpcInternalError',\n WebrpcClientDisconnected = 'WebrpcClientDisconnected',\n WebrpcStreamLost = 'WebrpcStreamLost',\n WebrpcStreamFinished = 'WebrpcStreamFinished',\n Unauthorized = 'Unauthorized',\n PermissionDenied = 'PermissionDenied',\n SessionExpired = 'SessionExpired',\n MethodNotFound = 'MethodNotFound',\n Timeout = 'Timeout',\n InvalidArgument = 'InvalidArgument',\n NotFound = 'NotFound',\n UserNotFound = 'UserNotFound',\n ProjectNotFound = 'ProjectNotFound',\n InvalidTier = 'InvalidTier',\n ProjectLimitReached = 'ProjectLimitReached',\n NotImplemented = 'NotImplemented',\n}\n\nconst webrpcErrorByCode: { [code: number]: any } = {\n [0]: WebrpcEndpointError,\n [-1]: WebrpcRequestFailedError,\n [-2]: WebrpcBadRouteError,\n [-3]: WebrpcBadMethodError,\n [-4]: WebrpcBadRequestError,\n [-5]: WebrpcBadResponseError,\n [-6]: WebrpcServerPanicError,\n [-7]: WebrpcInternalErrorError,\n [-8]: WebrpcClientDisconnectedError,\n [-9]: WebrpcStreamLostError,\n [-10]: WebrpcStreamFinishedError,\n [1000]: UnauthorizedError,\n [1001]: PermissionDeniedError,\n [1002]: SessionExpiredError,\n [1003]: MethodNotFoundError,\n [2000]: TimeoutError,\n [2001]: InvalidArgumentError,\n [3000]: NotFoundError,\n [3001]: UserNotFoundError,\n [3002]: ProjectNotFoundError,\n [3003]: InvalidTierError,\n [3005]: ProjectLimitReachedError,\n [9999]: NotImplementedError,\n}\n\nexport type Fetch = (input: RequestInfo, init?: RequestInit) => Promise<Response>\n","class CollectableKeys {\n\tstatic all = ['collectable'] as const;\n\tstatic details = [...CollectableKeys.all, 'details'] as const;\n\tstatic lists = [...CollectableKeys.all, 'list'] as const;\n\tstatic floorOrders = [...CollectableKeys.all, 'floorOrders'] as const;\n\tstatic userBalances = [\n\t\t...CollectableKeys.all,\n\t\t...CollectableKeys.details,\n\t\t'userBalances',\n\t] as const;\n\tstatic royaltyPercentage = [\n\t\t...CollectableKeys.all,\n\t\t'royaltyPercentage',\n\t] as const;\n\tstatic highestOffers = [\n\t\t...CollectableKeys.all,\n\t\t...CollectableKeys.details,\n\t\t'highestOffers',\n\t] as const;\n\tstatic lowestListings = [\n\t\t...CollectableKeys.all,\n\t\t...CollectableKeys.details,\n\t\t'lowestListings',\n\t] as const;\n\tstatic offers = [...CollectableKeys.all, 'offers'] as const;\n\tstatic filter = [...CollectableKeys.all, 'filter'] as const;\n\tstatic counts = [...CollectableKeys.all, 'counts'] as const;\n}\n\nclass CollectionKeys {\n\tstatic all = ['collections'] as const;\n\tstatic list = [...CollectionKeys.all, 'list'] as const;\n\tstatic detail = [...CollectionKeys.all, 'detail'] as const;\n}\n\nclass BalanceQueries {\n\tstatic all = ['balances'] as const;\n\tstatic lists = [...BalanceQueries.all, 'tokenBalances'] as const;\n}\n\nclass CheckoutKeys {\n\tstatic all = ['checkouts'] as const;\n\tstatic options = [...CheckoutKeys.all, 'options'] as const;\n\tstatic cartItems = [...CheckoutKeys.all, 'cartItems'] as const;\n}\n\nclass CurrencyKeys {\n\tstatic all = ['currencies'] as const;\n\tstatic lists = [...CurrencyKeys.all, 'list'] as const;\n}\n\nclass ConfigKeys {\n\tstatic all = ['configs'] as const;\n\tstatic marketplace = [...ConfigKeys.all, 'marketplace'] as const;\n}\nexport const collectableKeys = CollectableKeys;\nexport const collectionKeys = CollectionKeys;\nexport const balanceQueries = BalanceQueries;\nexport const checkoutKeys = CheckoutKeys;\nexport const currencyKeys = CurrencyKeys;\nexport const configKeys = ConfigKeys;\n","import { SequenceIndexer } from '@0xsequence/indexer';\nimport { SequenceMetadata } from '@0xsequence/metadata';\nimport { networks, stringTemplate } from '@0xsequence/network';\nimport type { Env, SdkConfig } from '../../../types/sdk-config';\nimport { SequenceMarketplace } from './marketplace-api';\n\nconst SERVICES = {\n\tsequenceApi: 'https://api.sequence.app',\n\tmetadata: 'https://${prefix}metadata.sequence.app',\n\tindexer: 'https://${prefix}${network}-indexer.sequence.app',\n\tmarketplaceApi: 'https://${prefix}marketplace-api.sequence.app/${network}',\n\timageProxy: 'https://imgproxy.sequence.xyz/',\n\tbuilderMarketplaceApi:\n\t\t'https://${prefix}api.sequence.build/marketplace/${projectId}',\n};\n\ntype ChainNameOrId = string | number;\n\nconst getNetwork = (nameOrId: ChainNameOrId) => {\n\tfor (const network of Object.values(networks)) {\n\t\tif (\n\t\t\tnetwork.name === String(nameOrId).toLowerCase() ||\n\t\t\tnetwork.chainId === Number(nameOrId)\n\t\t) {\n\t\t\treturn network;\n\t\t}\n\t}\n\tthrow new Error(`Unsopported chain; ${nameOrId}`);\n};\n\nexport const imageProxy = stringTemplate(SERVICES.imageProxy, {});\nconst metadataURL = (env: Env = 'production') => {\n\tconst prefix = getPrefix(env);\n\treturn stringTemplate(SERVICES.metadata, { prefix });\n};\nconst indexerURL = (chain: ChainNameOrId, env: Env = 'production') => {\n\tconst prefix = getPrefix(env);\n\tconst network = getNetwork(chain).name;\n\treturn stringTemplate(SERVICES.indexer, { network: network, prefix });\n};\nconst marketplaceApiURL = (chain: ChainNameOrId, env: Env = 'production') => {\n\tconst prefix = getPrefix(env);\n\tconst network = getNetwork(chain).name;\n\treturn stringTemplate(SERVICES.marketplaceApi, { network: network, prefix });\n};\nexport const builderMarketplaceApi = (\n\tprojectId: string,\n\tenv: Env = 'production',\n) => {\n\tconst prefix = getPrefix(env);\n\treturn stringTemplate(SERVICES.builderMarketplaceApi, {\n\t\tprojectId,\n\t\tprefix,\n\t});\n};\nexport const getMetadataClient = (config: SdkConfig) => {\n\tconst env = config._internal?.metadataEnv || 'production';\n\tconst projectAccessKey = getAccessKey({ env, config });\n\treturn new SequenceMetadata(metadataURL(env), projectAccessKey);\n};\nexport const getIndexerClient = (chain: ChainNameOrId, config: SdkConfig) => {\n\tconst env = config._internal?.indexerEnv || 'production';\n\tconst projectAccessKey = getAccessKey({ env, config });\n\treturn new SequenceIndexer(indexerURL(chain, env), projectAccessKey);\n};\nexport const getMarketplaceClient = (\n\tchain: ChainNameOrId,\n\tconfig: SdkConfig,\n) => {\n\tconst env = config._internal?.marketplaceEnv || 'production';\n\tconst projectAccessKey = getAccessKey({ env, config });\n\treturn new SequenceMarketplace(\n\t\tmarketplaceApiURL(chain, env),\n\t\tprojectAccessKey,\n\t);\n};\nconst getAccessKey = ({ env, config }: { env: Env; config: SdkConfig }) => {\n\tswitch (env) {\n\t\tcase 'development':\n\t\t\tif (!config._internal?.devAccessKey)\n\t\t\t\tthrow new Error('devAccessKey is required for development env');\n\t\t\treturn config._internal?.devAccessKey;\n\t\tcase 'production':\n\t\t\treturn config.projectAccessKey;\n\t\tcase 'next':\n\t\t\tif (!config._internal?.nextAccessKey)\n\t\t\t\tthrow new Error('nextAccessKey is required for next env');\n\t\t\treturn config._internal?.nextAccessKey;\n\t}\n};\n\nconst getPrefix = (env: Env) => {\n\tswitch (env) {\n\t\tcase 'development':\n\t\t\treturn 'dev-';\n\t\tcase 'production':\n\t\t\treturn '';\n\t\tcase 'next':\n\t\t\treturn 'next-';\n\t}\n};\n","import { getDefaultChains } from '@0xsequence/kit';\nimport { allNetworks, findNetworkConfig } from '@0xsequence/network';\nimport type { MarketplaceConfig, SdkConfig } from '@types';\nimport type { Chain, Transport } from 'viem';\nimport { http, cookieStorage, createConfig, createStorage } from 'wagmi';\nimport { getWaasConnectors } from './embedded';\nimport { getUniversalConnectors } from './universal';\n\nexport const createWagmiConfig = (\n\tmarketplaceConfig: MarketplaceConfig,\n\tsdkConfig: SdkConfig,\n\tssr?: boolean,\n) => {\n\tconst chains = getChainConfigs(marketplaceConfig);\n\tconst transports = getTransportConfigs(chains);\n\n\tconst walletType = sdkConfig.wallet?.embedded?.waasConfigKey\n\t\t? 'waas'\n\t\t: 'universal';\n\n\tconst connectors =\n\t\twalletType === 'universal'\n\t\t\t? getUniversalConnectors(marketplaceConfig, sdkConfig)\n\t\t\t: getWaasConnectors(marketplaceConfig, sdkConfig);\n\n\t// The old config did not support disabling EIP-6963 wallets\n\tconst includeEIP6963Wallets =\n\t\tmarketplaceConfig.walletOptionsNew?.includeEIP6963Wallets ?? true;\n\n\treturn createConfig({\n\t\tconnectors,\n\t\tchains,\n\t\tssr,\n\t\tmultiInjectedProviderDiscovery: includeEIP6963Wallets,\n\t\tstorage: ssr\n\t\t\t? createStorage({\n\t\t\t\t\tstorage: cookieStorage,\n\t\t\t\t})\n\t\t\t: undefined,\n\t\ttransports,\n\t});\n};\n\nfunction getChainConfigs(marketConfig: MarketplaceConfig): [Chain, ...Chain[]] {\n\tconst supportedChainIds = new Set(\n\t\tmarketConfig.collections.map((c) => c.chainId),\n\t);\n\treturn getDefaultChains([...supportedChainIds]);\n}\n\nfunction getTransportConfigs(\n\tchains: [Chain, ...Chain[]],\n): Record<number, Transport> {\n\treturn chains.reduce(\n\t\t(acc, chain) => {\n\t\t\tconst network = findNetworkConfig(allNetworks, chain.id);\n\t\t\tif (network) acc[chain.id] = http(network.rpcUrl);\n\t\t\treturn acc;\n\t\t},\n\t\t{} as Record<number, Transport>,\n\t);\n}\n","import {\n\ttype Wallet,\n\tappleWaas,\n\tcoinbaseWallet,\n\temailWaas,\n\tgetKitConnectWallets,\n\tgoogleWaas,\n\twalletConnect,\n} from '@0xsequence/kit';\nimport type { MarketplaceConfig, SdkConfig } from '@types';\nimport type { CreateConnectorFn } from 'wagmi';\nimport { DEFAULT_NETWORK } from '../consts';\n\nexport function getWaasConnectors(\n\tmarketplaceConfig: MarketplaceConfig,\n\tsdkConfig: SdkConfig,\n): CreateConnectorFn[] {\n\tconst { projectAccessKey } = sdkConfig;\n\n\tconst waasConfigKey = sdkConfig.wallet?.embedded?.waasConfigKey;\n\n\tif (!waasConfigKey)\n\t\tthrow new Error('waasConfigKey is required for embedded wallet');\n\n\tconst walletConnectProjectId = sdkConfig.wallet?.walletConnectProjectId;\n\tconst { googleClientId, appleClientId, appleRedirectURI } =\n\t\tsdkConfig.wallet?.embedded || {};\n\n\tconst { title: appName } = marketplaceConfig;\n\n\t// Normalizing the wallet options, TODO: remove this after the marketplaceConfig is updated\n\tconst walletOptions = marketplaceConfig.walletOptionsNew || {\n\t\tconnectors: ['coinbase', 'walletconnect'],\n\t};\n\n\tconst wallets: Wallet[] = [\n\t\temailWaas({\n\t\t\tprojectAccessKey,\n\t\t\twaasConfigKey,\n\t\t\tnetwork: DEFAULT_NETWORK,\n\t\t}),\n\t];\n\n\tif (walletOptions.connectors.includes('coinbase')) {\n\t\twallets.push(\n\t\t\tcoinbaseWallet({\n\t\t\t\tappName,\n\t\t\t}),\n\t\t);\n\t}\n\n\tif (\n\t\twalletConnectProjectId &&\n\t\twalletOptions.connectors.includes('walletconnect')\n\t) {\n\t\twallets.push(\n\t\t\twalletConnect({\n\t\t\t\tprojectId: walletConnectProjectId,\n\t\t\t}),\n\t\t);\n\t}\n\n\tif (googleClientId) {\n\t\twallets.push(\n\t\t\tgoogleWaas({\n\t\t\t\tprojectAccessKey,\n\t\t\t\tgoogleClientId,\n\t\t\t\twaasConfigKey,\n\t\t\t\tnetwork: DEFAULT_NETWORK,\n\t\t\t}),\n\t\t);\n\t}\n\n\tif (appleClientId) {\n\t\twallets.push(\n\t\t\tappleWaas({\n\t\t\t\tprojectAccessKey,\n\t\t\t\tappleClientId,\n\t\t\t\tappleRedirectURI,\n\t\t\t\twaasConfigKey,\n\t\t\t\tnetwork: DEFAULT_NETWORK,\n\t\t\t}),\n\t\t);\n\t}\n\n\treturn getKitConnectWallets(projectAccessKey, wallets);\n}\n","import {\n\ttype SequenceOptions,\n\ttype Wallet,\n\tapple,\n\tcoinbaseWallet,\n\temail,\n\tfacebook,\n\tgetKitConnectWallets,\n\tgoogle,\n\tsequence,\n\ttwitch,\n\twalletConnect,\n} from '@0xsequence/kit';\nimport type { MarketplaceConfig, SdkConfig } from '@types';\nimport type { CreateConnectorFn } from 'wagmi';\nimport { DEFAULT_NETWORK } from '../consts';\n\nconst defaultNetwork = DEFAULT_NETWORK;\n\nexport function getUniversalConnectors(\n\tmarketplaceConfig: MarketplaceConfig,\n\tconfig: SdkConfig,\n): CreateConnectorFn[] {\n\tconst { projectAccessKey } = config;\n\tconst sequenceWalletOptions = {\n\t\tdefaultNetwork,\n\t\tconnect: {\n\t\t\tprojectAccessKey,\n\t\t\tapp: marketplaceConfig.title,\n\t\t\tsettings: {\n\t\t\t\tbannerUrl: marketplaceConfig.ogImage,\n\t\t\t},\n\t\t},\n\t};\n\tconst wallets = getWalletConfigs(\n\t\tmarketplaceConfig,\n\t\tsequenceWalletOptions,\n\t\tconfig.wallet?.walletConnectProjectId,\n\t);\n\tconst socialWallets = getSocialWalletConfigs(sequenceWalletOptions);\n\treturn getKitConnectWallets(projectAccessKey, [...socialWallets, ...wallets]);\n}\n\nfunction getWalletConfigs(\n\tmarketplaceConfig: MarketplaceConfig,\n\tsequenceWalletOptions: SequenceOptions,\n\twalletConnectProjectId?: string,\n): Wallet[] {\n\tconst wallets: Wallet[] = [];\n\n\t// Normalizing the wallet options, TODO: remove this after the marketplaceConfig is updated\n\tconst walletOptions = marketplaceConfig.walletOptionsNew || {\n\t\tconnectors: ['coinbase', 'walletconnect'],\n\t};\n\n\twallets.push(sequence(sequenceWalletOptions));\n\n\tif (walletOptions.connectors.includes('coinbase')) {\n\t\twallets.push(coinbaseWallet({ appName: marketplaceConfig.title }));\n\t}\n\n\tif (\n\t\twalletConnectProjectId &&\n\t\twalletOptions.connectors.includes('walletconnect')\n\t) {\n\t\twallets.push(walletConnect({ projectId: walletConnectProjectId }));\n\t}\n\n\treturn wallets;\n}\n\nfunction getSocialWalletConfigs(\n\tsequenceWalletOptions: SequenceOptions,\n): Wallet[] {\n\treturn [\n\t\temail(sequenceWalletOptions),\n\t\tfacebook(sequenceWalletOptions),\n\t\tgoogle(sequenceWalletOptions),\n\t\tapple(sequenceWalletOptions),\n\t\ttwitch(sequenceWalletOptions),\n\t] as const;\n}\n"],"mappings":";AAAA;AAAA,EACC;AAAA,EACA;AAAA,OACM;AACP,SAAS,cAAc;;;ACqGhB,IAAK,YAAL,kBAAKA,eAAL;AACL,EAAAA,WAAA,UAAO;AACP,EAAAA,WAAA,SAAM;AAFI,SAAAA;AAAA,GAAA;AAKL,IAAK,eAAL,kBAAKC,kBAAL;AACL,EAAAA,cAAA,SAAM;AACN,EAAAA,cAAA,YAAS;AACT,EAAAA,cAAA,WAAQ;AACR,EAAAA,cAAA,aAAU;AAJA,SAAAA;AAAA,GAAA;AAOL,IAAK,kBAAL,kBAAKC,qBAAL;AACL,EAAAA,iBAAA,aAAU;AACV,EAAAA,iBAAA,6BAA0B;AAC1B,EAAAA,iBAAA,6BAA0B;AAC1B,EAAAA,iBAAA,aAAU;AACV,EAAAA,iBAAA,gBAAa;AACb,EAAAA,iBAAA,aAAU;AACV,EAAAA,iBAAA,gBAAa;AACb,EAAAA,iBAAA,UAAO;AACP,EAAAA,iBAAA,eAAY;AACZ,EAAAA,iBAAA,cAAW;AACX,EAAAA,iBAAA,aAAU;AACV,EAAAA,iBAAA,UAAO;AACP,EAAAA,iBAAA,gBAAa;AACb,EAAAA,iBAAA,cAAW;AACX,EAAAA,iBAAA,UAAO;AACP,EAAAA,iBAAA,UAAO;AACP,EAAAA,iBAAA,gBAAa;AACb,EAAAA,iBAAA,SAAM;AACN,EAAAA,iBAAA,aAAU;AACV,EAAAA,iBAAA,cAAW;AACX,EAAAA,iBAAA,gBAAa;AArBH,SAAAA;AAAA,GAAA;AAwBL,IAAK,gBAAL,kBAAKC,mBAAL;AACL,EAAAA,eAAA,aAAU;AACV,EAAAA,eAAA,6BAA0B;AAC1B,EAAAA,eAAA,6BAA0B;AAC1B,EAAAA,eAAA,UAAO;AACP,EAAAA,eAAA,aAAU;AACV,EAAAA,eAAA,gBAAa;AACb,EAAAA,eAAA,eAAY;AACZ,EAAAA,eAAA,UAAO;AARG,SAAAA;AAAA,GAAA;AAWL,IAAK,aAAL,kBAAKC,gBAAL;AACL,EAAAA,YAAA,aAAU;AACV,EAAAA,YAAA,cAAW;AACX,EAAAA,YAAA,6BAA0B;AAC1B,EAAAA,YAAA,6BAA0B;AAJhB,SAAAA;AAAA,GAAA;AAOL,IAAK,YAAL,kBAAKC,eAAL;AACL,EAAAA,WAAA,aAAU;AACV,EAAAA,WAAA,aAAU;AACV,EAAAA,WAAA,WAAQ;AAHE,SAAAA;AAAA,GAAA;AAML,IAAK,cAAL,kBAAKC,iBAAL;AACL,EAAAA,aAAA,aAAU;AACV,EAAAA,aAAA,YAAS;AACT,EAAAA,aAAA,cAAW;AACX,EAAAA,aAAA,aAAU;AACV,EAAAA,aAAA,eAAY;AACZ,EAAAA,aAAA,YAAS;AANC,SAAAA;AAAA,GAAA;AASL,IAAK,eAAL,kBAAKC,kBAAL;AACL,EAAAA,cAAA,aAAU;AACV,EAAAA,cAAA,WAAQ;AACR,EAAAA,cAAA,YAAS;AACT,EAAAA,cAAA,aAAU;AAJA,SAAAA;AAAA,GAAA;AAOL,IAAK,mBAAL,kBAAKC,sBAAL;AACL,EAAAA,kBAAA,aAAU;AACV,EAAAA,kBAAA,aAAU;AACV,EAAAA,kBAAA,sBAAmB;AACnB,EAAAA,kBAAA,qBAAkB;AAClB,EAAAA,kBAAA,oBAAiB;AACjB,EAAAA,kBAAA,mBAAgB;AAChB,EAAAA,kBAAA,oBAAiB;AACjB,EAAAA,kBAAA,YAAS;AACT,EAAAA,kBAAA,YAAS;AACT,EAAAA,kBAAA,cAAW;AAVD,SAAAA;AAAA,GAAA;AAaL,IAAK,gBAAL,kBAAKC,mBAAL;AACL,EAAAA,eAAA,aAAU;AACV,EAAAA,eAAA,YAAS;AACT,EAAAA,eAAA,cAAW;AAHD,SAAAA;AAAA,GAAA;AAML,IAAK,oBAAL,kBAAKC,uBAAL;AACL,EAAAA,mBAAA,aAAU;AACV,EAAAA,mBAAA,YAAS;AACT,EAAAA,mBAAA,cAAW;AAHD,SAAAA;AAAA,GAAA;AAML,IAAK,aAAL,kBAAKC,gBAAL;AACL,EAAAA,YAAA,aAAU;AACV,EAAAA,YAAA,cAAW;AAFD,SAAAA;AAAA,GAAA;AAKL,IAAK,WAAL,kBAAKC,cAAL;AACL,EAAAA,UAAA,aAAU;AACV,EAAAA,UAAA,mBAAgB;AAChB,EAAAA,UAAA,SAAM;AACN,EAAAA,UAAA,UAAO;AACP,EAAAA,UAAA,mBAAgB;AAChB,EAAAA,UAAA,iBAAc;AACd,EAAAA,UAAA,gBAAa;AACb,EAAAA,UAAA,gBAAa;AARH,SAAAA;AAAA,GAAA;AAWL,IAAK,oBAAL,kBAAKC,uBAAL;AACL,EAAAA,mBAAA,UAAO;AACP,EAAAA,mBAAA,eAAY;AACZ,EAAAA,mBAAA,SAAM;AAHI,SAAAA;AAAA,GAAA;AAuBL,IAAK,cAAL,kBAAKC,iBAAL;AACL,EAAAA,aAAA,aAAU;AACV,EAAAA,aAAA,WAAQ;AAFE,SAAAA;AAAA,GAAA;;;ACrPZ,IAAM,kBAAN,MAAM,iBAAgB;AAAA,EACrB,OAAO,MAAM,CAAC,aAAa;AAAA,EAC3B,OAAO,UAAU,CAAC,GAAG,iBAAgB,KAAK,SAAS;AAAA,EACnD,OAAO,QAAQ,CAAC,GAAG,iBAAgB,KAAK,MAAM;AAAA,EAC9C,OAAO,cAAc,CAAC,GAAG,iBAAgB,KAAK,aAAa;AAAA,EAC3D,OAAO,eAAe;AAAA,IACrB,GAAG,iBAAgB;AAAA,IACnB,GAAG,iBAAgB;AAAA,IACnB;AAAA,EACD;AAAA,EACA,OAAO,oBAAoB;AAAA,IAC1B,GAAG,iBAAgB;AAAA,IACnB;AAAA,EACD;AAAA,EACA,OAAO,gBAAgB;AAAA,IACtB,GAAG,iBAAgB;AAAA,IACnB,GAAG,iBAAgB;AAAA,IACnB;AAAA,EACD;AAAA,EACA,OAAO,iBAAiB;AAAA,IACvB,GAAG,iBAAgB;AAAA,IACnB,GAAG,iBAAgB;AAAA,IACnB;AAAA,EACD;AAAA,EACA,OAAO,SAAS,CAAC,GAAG,iBAAgB,KAAK,QAAQ;AAAA,EACjD,OAAO,SAAS,CAAC,GAAG,iBAAgB,KAAK,QAAQ;AAAA,EACjD,OAAO,SAAS,CAAC,GAAG,iBAAgB,KAAK,QAAQ;AAClD;AAEA,IAAM,iBAAN,MAAM,gBAAe;AAAA,EACpB,OAAO,MAAM,CAAC,aAAa;AAAA,EAC3B,OAAO,OAAO,CAAC,GAAG,gBAAe,KAAK,MAAM;AAAA,EAC5C,OAAO,SAAS,CAAC,GAAG,gBAAe,KAAK,QAAQ;AACjD;AAEA,IAAM,iBAAN,MAAM,gBAAe;AAAA,EACpB,OAAO,MAAM,CAAC,UAAU;AAAA,EACxB,OAAO,QAAQ,CAAC,GAAG,gBAAe,KAAK,eAAe;AACvD;AAEA,IAAM,eAAN,MAAM,cAAa;AAAA,EAClB,OAAO,MAAM,CAAC,WAAW;AAAA,EACzB,OAAO,UAAU,CAAC,GAAG,cAAa,KAAK,SAAS;AAAA,EAChD,OAAO,YAAY,CAAC,GAAG,cAAa,KAAK,WAAW;AACrD;AAEA,IAAM,eAAN,MAAM,cAAa;AAAA,EAClB,OAAO,MAAM,CAAC,YAAY;AAAA,EAC1B,OAAO,QAAQ,CAAC,GAAG,cAAa,KAAK,MAAM;AAC5C;AAEA,IAAM,aAAN,MAAM,YAAW;AAAA,EAChB,OAAO,MAAM,CAAC,SAAS;AAAA,EACvB,OAAO,cAAc,CAAC,GAAG,YAAW,KAAK,aAAa;AACvD;;;ACtDA,SAAS,uBAAuB;AAChC,SAAS,wBAAwB;AACjC,SAAS,UAAU,sBAAsB;AAIzC,IAAM,WAAW;AAAA,EAChB,aAAa;AAAA,EACb,UAAU;AAAA,EACV,SAAS;AAAA,EACT,gBAAgB;AAAA,EAChB,YAAY;AAAA,EACZ,uBACC;AACF;AAgBO,IAAM,aAAa,eAAe,SAAS,YAAY,CAAC,CAAC;;;AC9BhE,SAAS,wBAAwB;AACjC,SAAS,aAAa,yBAAyB;AAG/C,SAAS,MAAM,eAAe,cAAc,qBAAqB;;;ACJjE;AAAA,EAEC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACM;;;ACRP;AAAA,EAGC;AAAA,EACA,kBAAAC;AAAA,EACA;AAAA,EACA;AAAA,EACA,wBAAAC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA,iBAAAC;AAAA,OACM;","names":["SortOrder","PropertyType","MarketplaceKind","OrderbookKind","SourceKind","OrderSide","OrderStatus","ContractType","CollectionStatus","ProjectStatus","CollectibleStatus","WalletKind","StepType","TransactionCrypto","ExecuteType","coinbaseWallet","getKitConnectWallets","walletConnect"]}
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/react/ui/modals/_internal/components/switchChainModal/styles.css.ts","../src/react/ui/modals/_internal/components/alertMessage/styles.css.ts","../src/react/ui/modals/_internal/components/calendarPopover/styles.css.ts","../src/react/ui/modals/_internal/components/expirationDateSelect/styles.css.ts","../src/react/ui/modals/_internal/components/currencyOptionsSelect/styles.css.ts","../src/react/ui/modals/_internal/components/priceInput/styles.css.ts","../src/react/ui/modals/_internal/components/quantityInput/styles.css.ts","../src/react/ui/modals/_internal/components/tokenPreview/styles.css.ts","../src/react/ui/modals/SuccessfulPurchaseModal/styles.css.ts","../src/react/ui/modals/TransferModal/styles.css.ts"],"sourcesContent":["import 'src/react/ui/styles/modal.css.ts.vanilla.css?source=Lm1vZGFsX2RpYWxvZ0NvbnRlbnRCYXNlX18xeXBsNm50MSB7CiAgdG9wOiA1MCU7CiAgbGVmdDogNTAlOwogIHRyYW5zZm9ybTogdHJhbnNsYXRlKC01MCUsIC01MCUpOwogIHBhZGRpbmc6IDI0cHg7Cn0KLm1vZGFsX2RpYWxvZ0NvbnRlbnRfbmFycm93X18xeXBsNm50MiB7CiAgd2lkdGg6IDM2MHB4Owp9Ci5tb2RhbF9kaWFsb2dDb250ZW50X3dpZGVfXzF5cGw2bnQzIHsKICB3aWR0aDogNTQwcHg7Cn0KQG1lZGlhIHNjcmVlbiBhbmQgKG1heC13aWR0aDogMzYwcHgpIHsKICAubW9kYWxfZGlhbG9nQ29udGVudF9uYXJyb3dfXzF5cGw2bnQyIHsKICAgIHdpZHRoOiAxMDAlOwogICAgYm90dG9tOiAwOwogICAgdHJhbnNmb3JtOiB1bnNldDsKICAgIHRvcDogdW5zZXQ7CiAgICBsZWZ0OiB1bnNldDsKICAgIGJvcmRlci1ib3R0b20tbGVmdC1yYWRpdXM6IDAgIWltcG9ydGFudDsKICAgIGJvcmRlci1ib3R0b20tcmlnaHQtcmFkaXVzOiAwICFpbXBvcnRhbnQ7CiAgfQp9CkBtZWRpYSBzY3JlZW4gYW5kIChtYXgtd2lkdGg6IDU0MHB4KSB7CiAgLm1vZGFsX2RpYWxvZ0NvbnRlbnRfd2lkZV9fMXlwbDZudDMgewogICAgd2lkdGg6IDEwMCU7CiAgICBib3R0b206IDA7CiAgICB0cmFuc2Zvcm06IHVuc2V0OwogICAgdG9wOiB1bnNldDsKICAgIGxlZnQ6IHVuc2V0OwogICAgYm9yZGVyLWJvdHRvbS1sZWZ0LXJhZGl1czogMCAhaW1wb3J0YW50OwogICAgYm9yZGVyLWJvdHRvbS1yaWdodC1yYWRpdXM6IDAgIWltcG9ydGFudDsKICB9Cn0=';\nimport 'src/react/ui/modals/_internal/components/switchChainModal/styles.css.ts.vanilla.css?source=LnN0eWxlc19zd2l0Y2hDaGFpbkN0YUJhc2VfX3htaTA2cTEgewogIHdpZHRoOiAxNDdweDsKfQouc3R5bGVzX3N3aXRjaENoYWluQ3RhX3BlbmRpbmdfX3htaTA2cTMgewogIGRpc3BsYXk6IGZsZXg7CiAgYWxpZ24taXRlbXM6IGNlbnRlcjsKICBqdXN0aWZ5LWNvbnRlbnQ6IGNlbnRlcjsKfQouc3R5bGVzX3N3aXRjaENoYWluQ3RhX3BlbmRpbmdfX3htaTA2cTMgPiBkaXYgewogIGp1c3RpZnktY29udGVudDogY2VudGVyOwp9';\nexport var closeButton = 'fyvr11lw fyvr1tc fyvr1mo';\nexport var dialogOverlay = 'fyvr1m0 fyvr1o8 fyvr1qg fyvr1so fyvr11xl fyvr11m0 fyvr11rs';\nexport var switchChainCta = {'default':'styles_switchChainCtaBase__xmi06q1',pending:'styles_switchChainCta_pending__xmi06q3 styles_switchChainCtaBase__xmi06q1'};\nexport var switchChainModalContent = 'modal_dialogContent_wide__1ypl6nt3 modal_dialogContentBase__1ypl6nt1 fyvr11hg fyvr11i4 fyvr11g4 fyvr11gs fyvr11l8 fyvr11wl fyvr11m0 fyvr11rs fyvr1vo fyvr1xs fyvr1zw fyvr1120 fyvr11lc fyvr11mc fyvr11cw';","import 'src/react/ui/modals/_internal/components/alertMessage/styles.css.ts.vanilla.css?source=LnN0eWxlc19hbGVydE1lc3NhZ2VCb3hWYXJpYW50c193YXJuaW5nX195emZ0YWwxIHsKICBiYWNrZ3JvdW5kOiBoc2xhKDM5LCA3MSUsIDQwJSwgMC4zKTsKfQouc3R5bGVzX2FsZXJ0TWVzc2FnZUJveFZhcmlhbnRzX2luZm9fX3l6ZnRhbDIgewogIGJhY2tncm91bmQ6IGhzbGEoMjQ3LCAxMDAlLCA3NSUsIDAuMyk7Cn0=';\nexport var alertMessageBox = 'fyvr11hc fyvr11i0 fyvr11g0 fyvr11go fyvr1vc fyvr1xg fyvr1zk fyvr111o fyvr11l8 fyvr11ow fyvr11o4 fyvr11ck';\nexport var alertMessageBoxVariants = {warning:'styles_alertMessageBoxVariants_warning__yzftal1',info:'styles_alertMessageBoxVariants_info__yzftal2'};","import 'src/react/ui/modals/_internal/components/calendarPopover/styles.css.ts.vanilla.css?source=LnN0eWxlc19kYXRlU2VsZWN0QnV0dG9uX18xamM2cDhqMCB7CiAgZmxleDogMyAhaW1wb3J0YW50OwogIHBhZGRpbmc6IDEwcHggOHB4ICFpbXBvcnRhbnQ7CiAgaGVpZ2h0OiAzNnB4ICFpbXBvcnRhbnQ7CiAgYm9yZGVyOiAxcHggc29saWQgIzRGNEY0RiAhaW1wb3J0YW50OwogIGJvcmRlci1yYWRpdXM6IDRweCAhaW1wb3J0YW50OwogIGZvbnQtd2VpZ2h0OiA0MDAgIWltcG9ydGFudDsKICBmb250LXNpemU6IDEycHggIWltcG9ydGFudDsKfQouc3R5bGVzX2RhdGVTZWxlY3RQb3BvdmVyQ29udGVudF9fMWpjNnA4ajEgewogIHotaW5kZXg6IDIwOwogIHBvaW50ZXItZXZlbnRzOiBhbGw7Cn0=';\nexport var dateSelectButton = 'styles_dateSelectButton__1jc6p8j0';\nexport var dateSelectPopoverContent = 'styles_dateSelectPopoverContent__1jc6p8j1';","import 'src/react/ui/modals/_internal/components/expirationDateSelect/styles.css.ts.vanilla.css?source=LnN0eWxlc19yYW5nZVNlbGVjdF9fMXl1cGQ3cjAgewogIGZsZXg6IDI7Cn0KLnN0eWxlc19yYW5nZVNlbGVjdF9fMXl1cGQ3cjAgPiBsYWJlbCA+IGJ1dHRvbiB7CiAgYmFja2dyb3VuZDogI0ZGRkZGRjFBOwogIGJvcmRlci1yYWRpdXM6IDMwcHg7CiAgcGFkZGluZzogMTJweDsKICBtYXJnaW4tdG9wOiA0cHg7CiAgbWFyZ2luLWJvdHRvbTogNHB4OwogIGhlaWdodDogMjhweDsKICBib3JkZXI6IG5vbmU7CiAgYm94LXNoYWRvdzogbm9uZTsKfQouc3R5bGVzX3JhbmdlU2VsZWN0X18xeXVwZDdyMCA+IGxhYmVsID4gYnV0dG9uID4gc3BhbiB7CiAgZm9udC1zaXplOiAxMHB4Owp9Ci5zdHlsZXNfcmFuZ2VTZWxlY3RfXzF5dXBkN3IwID4gbGFiZWwgPiBidXR0b24gPiBzcGFuID4gc3ZnIHsKICB3aWR0aDogMTZweDsKICBoZWlnaHQ6IDE2cHg7Cn0=';\nexport var rangeSelect = 'styles_rangeSelect__1yupd7r0';","import 'src/react/ui/modals/_internal/components/currencyOptionsSelect/styles.css.ts.vanilla.css?source=LnN0eWxlc19jdXJyZW5jeVNlbGVjdF9fMW4xYnI4MjAgPiBsYWJlbCB7CiAgaGVpZ2h0OiAxMDAlOwp9Ci5zdHlsZXNfY3VycmVuY3lTZWxlY3RfXzFuMWJyODIwID4gbGFiZWwgPiBidXR0b24gewogIGJhY2tncm91bmQ6ICNGRkZGRkYxQTsKICBib3JkZXItcmFkaXVzOiAzMHB4OwogIHBhZGRpbmc6IDEycHg7CiAgbWFyZ2luLXJpZ2h0OiA4cHg7CiAgbWFyZ2luLXRvcDogNHB4OwogIG1hcmdpbi1ib3R0b206IDRweDsKICBoZWlnaHQ6IDI4cHg7CiAgYm9yZGVyOiBub25lOwogIGJveC1zaGFkb3c6IG5vbmU7Cn0KLnN0eWxlc19jdXJyZW5jeVNlbGVjdF9fMW4xYnI4MjAgPiBsYWJlbCA+IGJ1dHRvbiA+IHNwYW4gewogIGZvbnQtc2l6ZTogMTBweDsKfQouc3R5bGVzX2N1cnJlbmN5U2VsZWN0X18xbjFicjgyMCA+IGxhYmVsID4gYnV0dG9uID4gc3BhbiA+IHN2ZyB7CiAgd2lkdGg6IDE2cHg7CiAgaGVpZ2h0OiAxNnB4Owp9';\nexport var currencySelect = 'styles_currencySelect__1n1br820 fyvr164';","import 'src/react/ui/modals/_internal/components/priceInput/styles.css.ts.vanilla.css?source=LnN0eWxlc19wcmljZUlucHV0V3JhcHBlcl9fNmpqejh0MCB7CiAgZGlzcGxheTogZmxleDsKICBmbGV4LWRpcmVjdGlvbjogY29sdW1uOwogIHdpZHRoOiAxMDAlOwp9Ci5zdHlsZXNfcHJpY2VJbnB1dFdyYXBwZXJfXzZqano4dDAgPiBsYWJlbCB7CiAgZ2FwOiAycHg7Cn0KLnN0eWxlc19wcmljZUlucHV0V3JhcHBlcl9fNmpqejh0MCA+IGxhYmVsID4gZGl2ID4gZGl2IHsKICBoZWlnaHQ6IDM2cHg7CiAgZm9udC1zaXplOiAxMnB4OwogIGJvcmRlci1yYWRpdXM6IDRweDsKICBwYWRkaW5nLWxlZnQ6IDI4cHg7CiAgcGFkZGluZy1yaWdodDogMDsKfQouc3R5bGVzX3ByaWNlSW5wdXRXcmFwcGVyX182amp6OHQwID4gbGFiZWwgPiBkaXYgPiBkaXYgPiBpbnB1dCB7CiAgZm9udC1zaXplOiAxMnB4Owp9';\nexport var priceInputWrapper = 'styles_priceInputWrapper__6jjz8t0';","import 'src/react/ui/modals/_internal/components/quantityInput/styles.css.ts.vanilla.css?source=LnN0eWxlc19xdWFudGl0eUlucHV0V3JhcHBlcl9fNTBnNG05MCB7CiAgZGlzcGxheTogZmxleDsKICBmbGV4LWRpcmVjdGlvbjogY29sdW1uOwogIHdpZHRoOiAxMDAlOwp9Ci5zdHlsZXNfcXVhbnRpdHlJbnB1dFdyYXBwZXJfXzUwZzRtOTAgPiBsYWJlbCB7CiAgZ2FwOiAycHg7Cn0KLnN0eWxlc19xdWFudGl0eUlucHV0V3JhcHBlcl9fNTBnNG05MCA+IGxhYmVsID4gZGl2ID4gZGl2IHsKICBoZWlnaHQ6IDM2cHg7CiAgZm9udC1zaXplOiAxMnB4OwogIGJvcmRlci1yYWRpdXM6IDRweDsKICBwYWRkaW5nLWxlZnQ6IDEycHg7CiAgcGFkZGluZy1yaWdodDogMDsKfQouc3R5bGVzX3F1YW50aXR5SW5wdXRXcmFwcGVyX181MGc0bTkwID4gbGFiZWwgPiBkaXYgPiBkaXY6aGFzKDpkaXNhYmxlZCkgLCAuc3R5bGVzX3F1YW50aXR5SW5wdXRXcmFwcGVyX181MGc0bTkwID4gbGFiZWwgPiBkaXYgPiBkaXY6aGFzKDpkaXNhYmxlZCk6aG92ZXIgewogIG9wYWNpdHk6IDE7Cn0KLnN0eWxlc19xdWFudGl0eUlucHV0V3JhcHBlcl9fNTBnNG05MCA+IGxhYmVsID4gZGl2ID4gZGl2ID4gaW5wdXQgewogIGZvbnQtc2l6ZTogMTJweDsKfQ==';\nexport var quantityInputWrapper = 'styles_quantityInputWrapper__50g4m90';","export var tokenPreview = 'fyvr1188 fyvr11ag fyvr11l8 fyvr11ow fyvr12g';","import 'src/react/ui/styles/modal.css.ts.vanilla.css?source=Lm1vZGFsX2RpYWxvZ0NvbnRlbnRCYXNlX18xeXBsNm50MSB7CiAgdG9wOiA1MCU7CiAgbGVmdDogNTAlOwogIHRyYW5zZm9ybTogdHJhbnNsYXRlKC01MCUsIC01MCUpOwogIHBhZGRpbmc6IDI0cHg7Cn0KLm1vZGFsX2RpYWxvZ0NvbnRlbnRfbmFycm93X18xeXBsNm50MiB7CiAgd2lkdGg6IDM2MHB4Owp9Ci5tb2RhbF9kaWFsb2dDb250ZW50X3dpZGVfXzF5cGw2bnQzIHsKICB3aWR0aDogNTQwcHg7Cn0KQG1lZGlhIHNjcmVlbiBhbmQgKG1heC13aWR0aDogMzYwcHgpIHsKICAubW9kYWxfZGlhbG9nQ29udGVudF9uYXJyb3dfXzF5cGw2bnQyIHsKICAgIHdpZHRoOiAxMDAlOwogICAgYm90dG9tOiAwOwogICAgdHJhbnNmb3JtOiB1bnNldDsKICAgIHRvcDogdW5zZXQ7CiAgICBsZWZ0OiB1bnNldDsKICAgIGJvcmRlci1ib3R0b20tbGVmdC1yYWRpdXM6IDAgIWltcG9ydGFudDsKICAgIGJvcmRlci1ib3R0b20tcmlnaHQtcmFkaXVzOiAwICFpbXBvcnRhbnQ7CiAgfQp9CkBtZWRpYSBzY3JlZW4gYW5kIChtYXgtd2lkdGg6IDU0MHB4KSB7CiAgLm1vZGFsX2RpYWxvZ0NvbnRlbnRfd2lkZV9fMXlwbDZudDMgewogICAgd2lkdGg6IDEwMCU7CiAgICBib3R0b206IDA7CiAgICB0cmFuc2Zvcm06IHVuc2V0OwogICAgdG9wOiB1bnNldDsKICAgIGxlZnQ6IHVuc2V0OwogICAgYm9yZGVyLWJvdHRvbS1sZWZ0LXJhZGl1czogMCAhaW1wb3J0YW50OwogICAgYm9yZGVyLWJvdHRvbS1yaWdodC1yYWRpdXM6IDAgIWltcG9ydGFudDsKICB9Cn0=';\nimport 'src/react/ui/modals/SuccessfulPurchaseModal/styles.css.ts.vanilla.css?source=LnN0eWxlc19jb2xsZWN0aWJsZXNHcmlkX18xbmprd2ZlMCB7CiAgZGlzcGxheTogZ3JpZDsKICBncmlkLXRlbXBsYXRlLWNvbHVtbnM6IHJlcGVhdChhdXRvLWZpbGwsIG1pbm1heCgxNTBweCwgMWZyKSk7Cn0KLnN0eWxlc19jb2xsZWN0aWJsZXNHcmlkSXRlbV9fMW5qa3dmZTEgewogIHdpZHRoOiAxNTBweDsKICBoZWlnaHQ6IDE1MHB4Owp9Ci5zdHlsZXNfY29sbGVjdGlibGVzR3JpZF9fMW5qa3dmZTAgPiAuc3R5bGVzX2NvbGxlY3RpYmxlc0dyaWRJdGVtX18xbmprd2ZlMTpudGgtY2hpbGQoMSk6b25seS1jaGlsZCB7CiAgd2lkdGg6IDMxMnB4OwogIGhlaWdodDogMzEycHg7Cn0KLnN0eWxlc19jb2xsZWN0aWJsZXNHcmlkX18xbmprd2ZlMCA+IC5zdHlsZXNfY29sbGVjdGlibGVzR3JpZEl0ZW1fXzFuamt3ZmUxOm50aC1jaGlsZCgzKSB7CiAgZ3JpZC1jb2x1bW46IDEgLyAtMTsKICBqdXN0aWZ5LXNlbGY6IGNlbnRlcjsKfQouc3R5bGVzX2NvbGxlY3RpYmxlc0dyaWRfXzFuamt3ZmUwOmhhcyguc3R5bGVzX2NvbGxlY3RpYmxlc0dyaWRJdGVtX18xbmprd2ZlMTpudGgtY2hpbGQoNCkpID4gLnN0eWxlc19jb2xsZWN0aWJsZXNHcmlkSXRlbV9fMW5qa3dmZTEgewogIGdyaWQtY29sdW1uOiB1bnNldDsKfQouc3R5bGVzX2NvbGxlY3RpYmxlc0dyaWRJbWFnZV9fMW5qa3dmZTIgewogIHdpZHRoOiAxMDAlOwogIGhlaWdodDogMTAwJTsKICBvYmplY3QtZml0OiBjb250YWluOwp9Ci5zdHlsZXNfY29sbGVjdGlibGVzR3JpZEltYWdlUGFsZV9fMW5qa3dmZTMgewogIG9wYWNpdHk6IDAuNCAhaW1wb3J0YW50Owp9';\nexport var closeButton = 'fyvr11lw fyvr1tc fyvr1mo';\nexport var collectiblesGrid = 'styles_collectiblesGrid__1njkwfe0';\nexport var collectiblesGridImage = 'styles_collectiblesGridImage__1njkwfe2';\nexport var collectiblesGridImagePale = 'styles_collectiblesGridImagePale__1njkwfe3 styles_collectiblesGridImage__1njkwfe2';\nexport var collectiblesGridItem = 'styles_collectiblesGridItem__1njkwfe1';\nexport var dialogContent = {narrow:'modal_dialogContent_narrow__1ypl6nt2 modal_dialogContentBase__1ypl6nt1 fyvr11hg fyvr11i4 fyvr11g4 fyvr11gs fyvr11l8 fyvr11wl fyvr11m0 fyvr11rs',wide:'modal_dialogContent_wide__1ypl6nt3 modal_dialogContentBase__1ypl6nt1 fyvr11hg fyvr11i4 fyvr11g4 fyvr11gs fyvr11l8 fyvr11wl fyvr11m0 fyvr11rs'};\nexport var dialogOverlay = 'fyvr1m0 fyvr1o8 fyvr1qg fyvr1so fyvr11xl fyvr11m0 fyvr11rs';","import 'src/react/ui/styles/modal.css.ts.vanilla.css?source=Lm1vZGFsX2RpYWxvZ0NvbnRlbnRCYXNlX18xeXBsNm50MSB7CiAgdG9wOiA1MCU7CiAgbGVmdDogNTAlOwogIHRyYW5zZm9ybTogdHJhbnNsYXRlKC01MCUsIC01MCUpOwogIHBhZGRpbmc6IDI0cHg7Cn0KLm1vZGFsX2RpYWxvZ0NvbnRlbnRfbmFycm93X18xeXBsNm50MiB7CiAgd2lkdGg6IDM2MHB4Owp9Ci5tb2RhbF9kaWFsb2dDb250ZW50X3dpZGVfXzF5cGw2bnQzIHsKICB3aWR0aDogNTQwcHg7Cn0KQG1lZGlhIHNjcmVlbiBhbmQgKG1heC13aWR0aDogMzYwcHgpIHsKICAubW9kYWxfZGlhbG9nQ29udGVudF9uYXJyb3dfXzF5cGw2bnQyIHsKICAgIHdpZHRoOiAxMDAlOwogICAgYm90dG9tOiAwOwogICAgdHJhbnNmb3JtOiB1bnNldDsKICAgIHRvcDogdW5zZXQ7CiAgICBsZWZ0OiB1bnNldDsKICAgIGJvcmRlci1ib3R0b20tbGVmdC1yYWRpdXM6IDAgIWltcG9ydGFudDsKICAgIGJvcmRlci1ib3R0b20tcmlnaHQtcmFkaXVzOiAwICFpbXBvcnRhbnQ7CiAgfQp9CkBtZWRpYSBzY3JlZW4gYW5kIChtYXgtd2lkdGg6IDU0MHB4KSB7CiAgLm1vZGFsX2RpYWxvZ0NvbnRlbnRfd2lkZV9fMXlwbDZudDMgewogICAgd2lkdGg6IDEwMCU7CiAgICBib3R0b206IDA7CiAgICB0cmFuc2Zvcm06IHVuc2V0OwogICAgdG9wOiB1bnNldDsKICAgIGxlZnQ6IHVuc2V0OwogICAgYm9yZGVyLWJvdHRvbS1sZWZ0LXJhZGl1czogMCAhaW1wb3J0YW50OwogICAgYm9yZGVyLWJvdHRvbS1yaWdodC1yYWRpdXM6IDAgIWltcG9ydGFudDsKICB9Cn0=';\nimport 'src/react/ui/modals/TransferModal/styles.css.ts.vanilla.css?source=LnN0eWxlc190cmFuc2Zlck1vZGFsQ29udGVudF9faTFxejlnMCB7CiAgd2lkdGg6IDU0MHB4Owp9CkBtZWRpYSBzY3JlZW4gYW5kIChtYXgtd2lkdGg6IDU0MHB4KSB7CiAgLnN0eWxlc190cmFuc2Zlck1vZGFsQ29udGVudF9faTFxejlnMCB7CiAgICB3aWR0aDogMTAwJTsKICB9Cn0=';\nexport var closeButton = 'fyvr11lw fyvr1tc fyvr1mo';\nexport var dialogOverlay = 'fyvr1m0 fyvr1o8 fyvr1qg fyvr1so fyvr11xl fyvr11m0 fyvr11rs';\nexport var transferModalContent = 'styles_transferModalContent__i1qz9g0 modal_dialogContent_wide__1ypl6nt3 modal_dialogContentBase__1ypl6nt1 fyvr11hg fyvr11i4 fyvr11g4 fyvr11gs fyvr11l8 fyvr11wl fyvr11m0 fyvr11rs fyvr1vo fyvr1xs fyvr1zw fyvr1120';"],"mappings":";;;AAEO,IAAI,cAAc;AAClB,IAAI,gBAAgB;AACpB,IAAI,iBAAiB,EAAC,WAAU,sCAAqC,SAAQ,4EAA2E;AACxJ,IAAI,0BAA0B;;;ACJ9B,IAAI,kBAAkB;AACtB,IAAI,0BAA0B,EAAC,SAAQ,mDAAkD,MAAK,+CAA8C;;;ACD5I,IAAI,mBAAmB;AACvB,IAAI,2BAA2B;;;ACD/B,IAAI,cAAc;;;ACAlB,IAAI,iBAAiB;;;ACArB,IAAI,oBAAoB;;;ACAxB,IAAI,uBAAuB;;;ACD3B,IAAI,eAAe;;;ACEnB,IAAIA,eAAc;AAClB,IAAI,mBAAmB;AACvB,IAAI,wBAAwB;AAC5B,IAAI,4BAA4B;AAChC,IAAI,uBAAuB;AAC3B,IAAI,gBAAgB,EAAC,QAAO,kJAAiJ,MAAK,+IAA8I;AAChU,IAAIC,iBAAgB;;;ACNpB,IAAIC,eAAc;AAClB,IAAIC,iBAAgB;AACpB,IAAI,uBAAuB;","names":["closeButton","dialogOverlay","closeButton","dialogOverlay"]}