Hey is a decentralized and permissionless social media app built with Lens Protocol ๐ŸŒฟ
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

๐Ÿ” Refactored CollectAction to use payToCollect structure (#last-lens-testnet-codegen)

Summary: Refactored `CollectAction` to use `payToCollect` structure and updated token symbols for consistency.

Highlights:

โ€ข Replaced `amount` and `recipients` with `payToCollect` in `CollectAction` components.
โ€ข Updated token symbols to use `NATIVE_TOKEN_SYMBOL` and `WRAPPED_NATIVE_TOKEN_SYMBOL`.
โ€ข Removed `NoBalanceError` in `CollectActionButton`, replaced with `FundButton`.

Read more: https://pierre.co/yo/hey/last-lens-testnet-codegen

authored by yoginth.com and committed by

Pierre 2b3e1de5 275ab196

+303 -216
+30 -15
apps/web/src/components/Composer/Actions/CollectSettings/AmountConfig.tsx
··· 15 15 const { currentAccount } = useAccountStore(); 16 16 const { collectAction } = useCollectActionStore((state) => state); 17 17 18 - const enabled = Boolean(collectAction.amount?.value); 18 + const enabled = Boolean(collectAction.payToCollect?.amount.value); 19 19 20 20 return ( 21 21 <div> ··· 26 26 on={enabled} 27 27 setOn={() => { 28 28 setCollectType({ 29 - amount: enabled 30 - ? null 31 - : { currency: DEFAULT_COLLECT_TOKEN, value: "1" }, 32 - recipients: enabled 29 + payToCollect: enabled 33 30 ? undefined 34 - : [{ address: currentAccount?.address, percent: 100 }] 31 + : { 32 + amount: { currency: DEFAULT_COLLECT_TOKEN, value: "1" }, 33 + referralShare: 5, // 5% for the Hey platform fees 34 + recipients: [ 35 + { address: currentAccount?.address, percent: 100 } 36 + ] 37 + } 35 38 }); 36 39 }} 37 40 /> 38 - {collectAction.amount?.value ? ( 41 + {collectAction.payToCollect?.amount.value ? ( 39 42 <div className="mt-4 ml-8"> 40 43 <div className="flex space-x-2 text-sm"> 41 44 <Input ··· 43 46 max="100000" 44 47 min="0" 45 48 onChange={(event) => { 49 + if (!collectAction.payToCollect) return; 46 50 setCollectType({ 47 - amount: { 48 - currency: collectAction.amount?.currency, 49 - value: event.target.value ? event.target.value : "0" 51 + payToCollect: { 52 + ...collectAction.payToCollect, 53 + amount: { 54 + currency: collectAction.payToCollect?.amount.currency, 55 + value: event.target.value ? event.target.value : "0" 56 + } 50 57 } 51 58 }); 52 59 }} 53 60 placeholder="0.5" 54 61 type="number" 55 - value={Number.parseFloat(collectAction.amount.value)} 62 + value={Number.parseFloat( 63 + collectAction.payToCollect?.amount.value 64 + )} 56 65 /> 57 66 <div className="w-5/6"> 58 67 <div className="label">Select currency</div> 59 68 <Select 60 69 iconClassName="size-4" 61 70 onChange={(value) => { 71 + if (!collectAction.payToCollect) return; 62 72 setCollectType({ 63 - amount: { 64 - currency: value, 65 - value: collectAction.amount?.value as string 73 + payToCollect: { 74 + ...collectAction.payToCollect, 75 + amount: { 76 + currency: value, 77 + value: collectAction.payToCollect?.amount 78 + .value as string 79 + } 66 80 } 67 81 }); 68 82 }} ··· 70 84 icon: `${STATIC_IMAGES_URL}/tokens/${token.symbol}.svg`, 71 85 label: token.name, 72 86 selected: 73 - token.contractAddress === collectAction.amount?.currency, 87 + token.contractAddress === 88 + collectAction.payToCollect?.amount.currency, 74 89 value: token.contractAddress 75 90 }))} 76 91 />
+10 -14
apps/web/src/components/Composer/Actions/CollectSettings/CollectForm.tsx
··· 9 9 import AmountConfig from "./AmountConfig"; 10 10 import CollectLimitConfig from "./CollectLimitConfig"; 11 11 import FollowersConfig from "./FollowersConfig"; 12 - import ReferralConfig from "./ReferralConfig"; 13 12 import SplitConfig from "./SplitConfig"; 14 13 import TimeLimitConfig from "./TimeLimitConfig"; 15 14 ··· 18 17 } 19 18 20 19 const CollectForm = ({ setShowModal }: CollectFormProps) => { 21 - const { collectAction, reset, setCollectAction } = useCollectActionStore(); 20 + const { collectAction, setCollectAction, reset } = useCollectActionStore(); 22 21 const { setLicense } = usePostLicenseStore(); 23 22 24 - const recipients = collectAction.recipients || []; 23 + const recipients = collectAction.payToCollect?.recipients || []; 25 24 const splitTotal = recipients.reduce((acc, { percent }) => acc + percent, 0); 26 25 27 26 const validationChecks = { ··· 70 69 <> 71 70 <div className="m-5"> 72 71 <AmountConfig setCollectType={setCollectType} /> 73 - {collectAction.amount?.value && ( 74 - <> 75 - <ReferralConfig setCollectType={setCollectType} /> 76 - <SplitConfig 77 - isRecipientsDuplicated={ 78 - validationChecks.isRecipientsDuplicated 79 - } 80 - setCollectType={setCollectType} 81 - /> 82 - </> 72 + {collectAction.payToCollect?.amount.value && ( 73 + <SplitConfig 74 + isRecipientsDuplicated={validationChecks.isRecipientsDuplicated} 75 + setCollectType={setCollectType} 76 + /> 83 77 )} 84 78 <CollectLimitConfig setCollectType={setCollectType} /> 85 79 <TimeLimitConfig setCollectType={setCollectType} /> ··· 103 97 </Button> 104 98 <Button 105 99 disabled={ 106 - (Number.parseFloat(collectAction.amount?.value as string) <= 0 && 100 + (Number.parseFloat( 101 + collectAction.payToCollect?.amount.value as string 102 + ) <= 0 && 107 103 collectAction.enabled) || 108 104 Object.values(validationChecks).some(Boolean) 109 105 }
-46
apps/web/src/components/Composer/Actions/CollectSettings/ReferralConfig.tsx
··· 1 - import ToggleWithHelper from "@components/Shared/ToggleWithHelper"; 2 - import { ArrowsRightLeftIcon } from "@heroicons/react/24/outline"; 3 - import type { CollectActionType } from "@hey/types/hey"; 4 - import { RangeSlider } from "@hey/ui"; 5 - import { useCollectActionStore } from "src/store/non-persisted/post/useCollectActionStore"; 6 - 7 - interface ReferralConfigProps { 8 - setCollectType: (data: CollectActionType) => void; 9 - } 10 - 11 - const ReferralConfig = ({ setCollectType }: ReferralConfigProps) => { 12 - const { collectAction } = useCollectActionStore((state) => state); 13 - 14 - return ( 15 - <div className="mt-5"> 16 - <ToggleWithHelper 17 - description="Share your fee with people who amplify your content" 18 - heading="Repost referral reward" 19 - icon={<ArrowsRightLeftIcon className="size-5" />} 20 - on={Boolean(collectAction.referralShare)} 21 - setOn={() => 22 - setCollectType({ 23 - referralShare: collectAction.referralShare ? 0 : 25 24 - }) 25 - } 26 - /> 27 - {collectAction.referralShare ? ( 28 - <div className="mt-4 ml-8 space-y-2 text-sm"> 29 - <div>Referral fee</div> 30 - <RangeSlider 31 - showValueInThumb 32 - min={1} 33 - max={100} 34 - displayValue={`${collectAction.referralShare.toString()}%`} 35 - defaultValue={[collectAction.referralShare]} 36 - onValueChange={(value) => 37 - setCollectType({ referralShare: Number(value[0]) }) 38 - } 39 - /> 40 - </div> 41 - ) : null} 42 - </div> 43 - ); 44 - }; 45 - 46 - export default ReferralConfig;
+37 -7
apps/web/src/components/Composer/Actions/CollectSettings/SplitConfig.tsx
··· 28 28 const { collectAction } = useCollectActionStore((state) => state); 29 29 30 30 const currentAddress = currentAccount?.address || ""; 31 - const recipients = collectAction.recipients || []; 31 + const recipients = collectAction.payToCollect?.recipients || []; 32 32 const [isToggleOn, setIsToggleOn] = useState( 33 33 recipients.length > 1 || 34 34 (recipients.length === 1 && recipients[0].address !== currentAddress) ··· 43 43 percent: equalSplits[i] 44 44 }; 45 45 }); 46 - setCollectType({ recipients: [...splits] }); 46 + if (!collectAction.payToCollect) return; 47 + setCollectType({ 48 + payToCollect: { 49 + ...collectAction.payToCollect, 50 + recipients: [...splits] 51 + } 52 + }); 47 53 }; 48 54 49 55 const onChangeRecipientOrPercent = ( ··· 63 69 }); 64 70 }; 65 71 66 - setCollectType({ recipients: getRecipients(value) }); 72 + if (!collectAction.payToCollect) return; 73 + setCollectType({ 74 + payToCollect: { 75 + ...collectAction.payToCollect, 76 + recipients: getRecipients(value) 77 + } 78 + }); 67 79 }; 68 80 69 81 const updateRecipient = (index: number, value: string) => { ··· 73 85 const handleRemoveRecipient = (index: number) => { 74 86 const updatedRecipients = recipients.filter((_, i) => i !== index); 75 87 if (updatedRecipients.length === 0) { 88 + if (!collectAction.payToCollect) return; 76 89 setCollectType({ 77 - recipients: [{ address: currentAddress, percent: 100 }] 90 + payToCollect: { 91 + ...collectAction.payToCollect, 92 + recipients: [{ address: currentAddress, percent: 100 }] 93 + } 78 94 }); 79 95 setIsToggleOn(false); 80 96 } else { 81 - setCollectType({ recipients: updatedRecipients }); 97 + if (!collectAction.payToCollect) return; 98 + setCollectType({ 99 + payToCollect: { 100 + ...collectAction.payToCollect, 101 + recipients: updatedRecipients 102 + } 103 + }); 82 104 } 83 105 }; 84 106 85 107 const toggleSplit = () => { 108 + if (!collectAction.payToCollect) return; 86 109 setCollectType({ 87 - recipients: [{ address: currentAddress, percent: 100 }] 110 + payToCollect: { 111 + ...collectAction.payToCollect, 112 + recipients: [{ address: currentAddress, percent: 100 }] 113 + } 88 114 }); 89 115 setIsToggleOn(!isToggleOn); 90 116 }; ··· 154 180 <Button 155 181 icon={<PlusIcon className="size-3" />} 156 182 onClick={() => { 183 + if (!collectAction.payToCollect) return; 157 184 setCollectType({ 158 - recipients: [...recipients, { address: "", percent: 0 }] 185 + payToCollect: { 186 + ...collectAction.payToCollect, 187 + recipients: [...recipients, { address: "", percent: 0 }] 188 + } 159 189 }); 160 190 }} 161 191 outline
+14 -4
apps/web/src/components/Group/Settings/Rules/SuperJoin.tsx
··· 1 1 import trackEvent from "@helpers/analytics"; 2 2 import errorToast from "@helpers/errorToast"; 3 3 import { getSimplePaymentDetails } from "@helpers/rules"; 4 - import { DEFAULT_COLLECT_TOKEN, STATIC_IMAGES_URL } from "@hey/data/constants"; 4 + import { 5 + DEFAULT_COLLECT_TOKEN, 6 + IS_MAINNET, 7 + STATIC_IMAGES_URL, 8 + WRAPPED_NATIVE_TOKEN_SYMBOL 9 + } from "@hey/data/constants"; 5 10 import { Errors } from "@hey/data/errors"; 6 11 import { Events } from "@hey/data/events"; 7 12 import { ··· 113 118 label="Amount" 114 119 placeholder="1" 115 120 prefix={ 116 - <Tooltip content="Payable in wGHO" placement="top"> 121 + <Tooltip 122 + content={`Payable in ${WRAPPED_NATIVE_TOKEN_SYMBOL}`} 123 + placement="top" 124 + > 117 125 <Image 118 126 className="size-5" 119 - src={`${STATIC_IMAGES_URL}/tokens/gho.svg`} 120 - alt="wGHO" 127 + src={`${STATIC_IMAGES_URL}/tokens/${ 128 + IS_MAINNET ? "gho.svg" : "grass.svg" 129 + }`} 130 + alt={WRAPPED_NATIVE_TOKEN_SYMBOL} 121 131 /> 122 132 </Tooltip> 123 133 }
+5 -3
apps/web/src/components/Post/OpenAction/CollectAction/CollectActionBody.tsx
··· 67 67 const collectAction = targetAction as SimpleCollectActionFragment; 68 68 const endTimestamp = collectAction?.endsAt; 69 69 const collectLimit = Number(collectAction?.collectLimit); 70 - const amount = Number.parseFloat(collectAction?.amount?.value || "0"); 71 - const currency = collectAction?.amount?.asset?.symbol; 72 - const recipients = collectAction?.recipients || []; 70 + const amount = Number.parseFloat( 71 + collectAction?.payToCollect?.amount?.value || "0" 72 + ); 73 + const currency = collectAction?.payToCollect?.amount?.asset?.symbol; 74 + const recipients = collectAction?.payToCollect?.recipients || []; 73 75 const percentageCollected = (collects / collectLimit) * 100; 74 76 const enabledTokens = tokens.map((t) => t.symbol); 75 77 const isTokenEnabled = enabledTokens?.includes(currency || "");
+4 -9
apps/web/src/components/Post/OpenAction/CollectAction/CollectActionButton.tsx
··· 1 1 import { useApolloClient } from "@apollo/client"; 2 + import FundButton from "@components/Shared/Fund/FundButton"; 2 3 import LoginButton from "@components/Shared/LoginButton"; 3 - import NoBalanceError from "@components/Shared/NoBalanceError"; 4 4 import trackEvent from "@helpers/analytics"; 5 5 import errorToast from "@helpers/errorToast"; 6 6 import { HEY_TREASURY } from "@hey/data/constants"; ··· 13 13 type PostFragment, 14 14 useExecutePostActionMutation 15 15 } from "@hey/indexer"; 16 - import { Button, WarningMessage } from "@hey/ui"; 16 + import { Button } from "@hey/ui"; 17 17 import { useState } from "react"; 18 18 import toast from "react-hot-toast"; 19 19 import useTransactionLifecycle from "src/hooks/useTransactionLifecycle"; ··· 135 135 action: { 136 136 simpleCollect: { 137 137 selected: true, 138 - referrals: [{ address: HEY_TREASURY, percent: 5 }] 138 + referrals: [{ address: HEY_TREASURY, percent: 100 }] 139 139 } 140 140 } 141 141 } ··· 161 161 } 162 162 163 163 if (!hasAmount) { 164 - return ( 165 - <WarningMessage 166 - className="mt-5 w-full" 167 - message={<NoBalanceError assetSymbol={collectAction?.assetSymbol} />} 168 - /> 169 - ); 164 + return <FundButton className="mt-5 w-full" />; 170 165 } 171 166 172 167 return (
+6 -4
apps/web/src/components/Post/OpenAction/TipAction/Action.tsx
··· 3 3 import LoginButton from "@components/Shared/LoginButton"; 4 4 import trackEvent from "@helpers/analytics"; 5 5 import errorToast from "@helpers/errorToast"; 6 - import { DEFAULT_COLLECT_TOKEN, IS_MAINNET } from "@hey/data/constants"; 6 + import { 7 + DEFAULT_COLLECT_TOKEN, 8 + WRAPPED_NATIVE_TOKEN_SYMBOL 9 + } from "@hey/data/constants"; 7 10 import { Errors } from "@hey/data/errors"; 8 11 import { Events } from "@hey/data/events"; 9 12 import { ··· 40 43 const { cache } = useApolloClient(); 41 44 const inputRef = useRef<HTMLInputElement>(null); 42 45 usePreventScrollOnNumberInput(inputRef as RefObject<HTMLInputElement>); 43 - const symbol = IS_MAINNET ? "wGHO" : "wGRASS"; 44 46 45 47 const { data: balanceData, isLoading: balanceLoading } = useBalance({ 46 48 address: currentAccount?.address, ··· 69 71 closePopover(); 70 72 updateCache(); 71 73 trackEvent(Events.Post.Tip, { amount: amount }); 72 - toast.success(`Tipped ${amount} ${symbol}`); 74 + toast.success(`Tipped ${amount} ${WRAPPED_NATIVE_TOKEN_SYMBOL}`); 73 75 }; 74 76 75 77 const onError = (error: any) => { ··· 144 146 <span>Balance:</span> 145 147 <span> 146 148 {balanceData ? ( 147 - `${balance} ${symbol}` 149 + `${balance} ${WRAPPED_NATIVE_TOKEN_SYMBOL}` 148 150 ) : ( 149 151 <div className="shimmer h-2.5 w-14 rounded-full" /> 150 152 )}
+14 -4
apps/web/src/components/Settings/Account/SuperFollow.tsx
··· 1 1 import trackEvent from "@helpers/analytics"; 2 2 import errorToast from "@helpers/errorToast"; 3 3 import { getSimplePaymentDetails } from "@helpers/rules"; 4 - import { DEFAULT_COLLECT_TOKEN, STATIC_IMAGES_URL } from "@hey/data/constants"; 4 + import { 5 + DEFAULT_COLLECT_TOKEN, 6 + IS_MAINNET, 7 + STATIC_IMAGES_URL, 8 + WRAPPED_NATIVE_TOKEN_SYMBOL 9 + } from "@hey/data/constants"; 5 10 import { Errors } from "@hey/data/errors"; 6 11 import { Events } from "@hey/data/events"; 7 12 import { ··· 124 129 label="Amount" 125 130 placeholder="1" 126 131 prefix={ 127 - <Tooltip content="Payable in wGHO" placement="top"> 132 + <Tooltip 133 + content={`Payable in ${WRAPPED_NATIVE_TOKEN_SYMBOL}`} 134 + placement="top" 135 + > 128 136 <Image 129 137 className="size-5" 130 - src={`${STATIC_IMAGES_URL}/tokens/gho.svg`} 131 - alt="wGHO" 138 + src={`${STATIC_IMAGES_URL}/tokens/${ 139 + IS_MAINNET ? "gho.svg" : "grass.svg" 140 + }`} 141 + alt={WRAPPED_NATIVE_TOKEN_SYMBOL} 132 142 /> 133 143 </Tooltip> 134 144 }
+5 -5
apps/web/src/components/Settings/Funds/Balances.tsx
··· 1 1 import FundButton from "@components/Shared/Fund/FundButton"; 2 2 import Loader from "@components/Shared/Loader"; 3 - import { DEFAULT_COLLECT_TOKEN, IS_MAINNET } from "@hey/data/constants"; 3 + import { 4 + DEFAULT_COLLECT_TOKEN, 5 + NATIVE_TOKEN_SYMBOL 6 + } from "@hey/data/constants"; 4 7 import { tokens } from "@hey/data/tokens"; 5 8 import getTokenImage from "@hey/helpers/getTokenImage"; 6 9 import { useAccountBalancesQuery } from "@hey/indexer"; ··· 68 71 {data?.accountBalances.map((balance, index) => ( 69 72 <div key={index}> 70 73 {balance.__typename === "NativeAmount" && ( 71 - <TokenBalance 72 - value={balance.value} 73 - symbol={IS_MAINNET ? "GHO" : "GRASS"} 74 - /> 74 + <TokenBalance value={balance.value} symbol={NATIVE_TOKEN_SYMBOL} /> 75 75 )} 76 76 {balance.__typename === "Erc20Amount" && ( 77 77 <TokenBalance
+2 -2
apps/web/src/components/Settings/Funds/Unwrap.tsx
··· 1 1 import trackEvent from "@helpers/analytics"; 2 2 import errorToast from "@helpers/errorToast"; 3 - import { IS_MAINNET } from "@hey/data/constants"; 3 + import { NATIVE_TOKEN_SYMBOL } from "@hey/data/constants"; 4 4 import { Events } from "@hey/data/events"; 5 5 import { useUnwrapTokensMutation } from "@hey/indexer"; 6 6 import { Button, Input, Modal } from "@hey/ui"; ··· 68 68 onClick={() => setShowModal(true)} 69 69 disabled={isSubmitting} 70 70 > 71 - Unwrap to {IS_MAINNET ? "GHO" : "GRASS"} 71 + Unwrap to {NATIVE_TOKEN_SYMBOL} 72 72 </Button> 73 73 <Modal 74 74 title="Unwrap"
+2 -2
apps/web/src/components/Settings/Funds/Wrap.tsx
··· 1 1 import trackEvent from "@helpers/analytics"; 2 2 import errorToast from "@helpers/errorToast"; 3 - import { IS_MAINNET } from "@hey/data/constants"; 3 + import { WRAPPED_NATIVE_TOKEN_SYMBOL } from "@hey/data/constants"; 4 4 import { Events } from "@hey/data/events"; 5 5 import { useWrapTokensMutation } from "@hey/indexer"; 6 6 import { Button, Input, Modal } from "@hey/ui"; ··· 68 68 onClick={() => setShowModal(true)} 69 69 disabled={isSubmitting || valueToWrap === "0"} 70 70 > 71 - Wrap to {IS_MAINNET ? "wGHO" : "wGRASS"} 71 + Wrap to {WRAPPED_NATIVE_TOKEN_SYMBOL} 72 72 </Button> 73 73 <Modal title="Wrap" show={showModal} onClose={() => setShowModal(false)}> 74 74 <div className="p-5">
+12 -6
apps/web/src/components/Shared/Fund/FundAccount/Fund.tsx
··· 1 1 import trackEvent from "@helpers/analytics"; 2 2 import errorToast from "@helpers/errorToast"; 3 - import { DEFAULT_COLLECT_TOKEN } from "@hey/data/constants"; 3 + import { 4 + DEFAULT_COLLECT_TOKEN, 5 + NATIVE_TOKEN_SYMBOL, 6 + WRAPPED_NATIVE_TOKEN_SYMBOL 7 + } from "@hey/data/constants"; 4 8 import { Events } from "@hey/data/events"; 5 9 import { useDepositMutation } from "@hey/indexer"; 6 10 import { Button, Card, Input, Spinner } from "@hey/ui"; ··· 29 33 const { address } = useAccount(); 30 34 const handleTransactionLifecycle = useTransactionLifecycle(); 31 35 const pollTransactionStatus = usePollTransactionStatus(); 32 - const symbol = useNativeToken ? "GHO" : "wGHO"; 36 + const symbol = useNativeToken 37 + ? NATIVE_TOKEN_SYMBOL 38 + : WRAPPED_NATIVE_TOKEN_SYMBOL; 33 39 34 40 const { data, isLoading } = useBalance({ 35 41 address, ··· 42 48 setOther(false); 43 49 onSuccess?.(); 44 50 setIsSubmitting(false); 45 - setShowFundModal(false); 46 51 trackEvent(Events.Account.DepositFunds); 47 52 toast.success("Deposit initiated"); 48 53 pollTransactionStatus(hash, () => { 54 + setShowFundModal(false); 49 55 toast.success( 50 56 isHeyTip ? "Thank you for your support!" : "Funded account successfully" 51 57 ); ··· 126 132 onClick={() => handleSetAmount(2)} 127 133 outline={amount !== 2} 128 134 > 129 - 2 {symbol} 135 + 2 130 136 </Button> 131 137 <Button 132 138 className="w-full" 133 139 onClick={() => handleSetAmount(5)} 134 140 outline={amount !== 5} 135 141 > 136 - 5 {symbol} 142 + 5 137 143 </Button> 138 144 <Button 139 145 className="w-full" 140 146 onClick={() => handleSetAmount(10)} 141 147 outline={amount !== 10} 142 148 > 143 - 10 {symbol} 149 + 10 144 150 </Button> 145 151 <Button 146 152 className="w-full"
+9 -6
apps/web/src/components/Shared/Fund/FundAccount/index.tsx
··· 1 1 import { 2 2 DEFAULT_COLLECT_TOKEN, 3 3 IS_MAINNET, 4 - STATIC_IMAGES_URL 4 + NATIVE_TOKEN_SYMBOL, 5 + STATIC_IMAGES_URL, 6 + WRAPPED_NATIVE_TOKEN_SYMBOL 5 7 } from "@hey/data/constants"; 6 8 import { Image } from "@hey/ui"; 7 9 import { useAccountStore } from "src/store/persisted/useAccountStore"; ··· 32 34 <div className="flex flex-col items-center gap-2 text-center"> 33 35 <Image 34 36 className="size-12 rounded-full" 35 - src={`${STATIC_IMAGES_URL}/tokens/gho.svg`} 36 - alt="wGHO" 37 + src={`${STATIC_IMAGES_URL}/tokens/${ 38 + IS_MAINNET ? "gho.svg" : "grass.svg" 39 + }`} 40 + alt={WRAPPED_NATIVE_TOKEN_SYMBOL} 37 41 /> 38 42 <div className="font-bold text-2xl"> 39 - {accountBalance} {IS_MAINNET ? "wGHO" : "wGRASS"} 43 + {accountBalance} {WRAPPED_NATIVE_TOKEN_SYMBOL} 40 44 </div> 41 45 <div className="ld-text-gray-500 text-sm"> 42 - Wrapped {IS_MAINNET ? "GHO" : "GRASS"} enables various Hey-specific 43 - actions. 46 + Wrapped {NATIVE_TOKEN_SYMBOL} enables various Hey-specific actions. 44 47 </div> 45 48 </div> 46 49 <Fund />
+3 -5
apps/web/src/store/non-persisted/post/useCollectActionStore.ts
··· 2 2 import { create } from "zustand"; 3 3 4 4 const INITIAL_COLLECT_ACTION: CollectActionType = { 5 - amount: null, 6 5 collectLimit: null, 7 - endsAt: null, 8 6 followerOnly: false, 9 - recipients: undefined, 10 - referralShare: 0, 11 - enabled: false 7 + payToCollect: undefined, 8 + enabled: false, 9 + endsAt: null 12 10 }; 13 11 14 12 interface State {
+2
packages/data/constants.ts
··· 58 58 export const ATTACHMENT = "tr:w-1000"; 59 59 60 60 export const LENS_NAMESPACE = "lens/"; 61 + export const NATIVE_TOKEN_SYMBOL = IS_MAINNET ? "GHO" : "GRASS"; 62 + export const WRAPPED_NATIVE_TOKEN_SYMBOL = IS_MAINNET ? "wGHO" : "wGRASS";
+2 -2
packages/data/contracts.ts
··· 6 6 7 7 export enum TestnetContracts { 8 8 DefaultToken = "0xeee5a340Cdc9c179Db25dea45AcfD5FE8d4d3eB8", 9 - App = "0x48655F062E48b31eb4b7B1e3Ec377d5770f6f78d", 10 - Sponsor = "0xbAf5bb0CD3742BA57C425E827E6c6E2f66Ed8FdB" 9 + App = "0x688419B0299f3Ed8E80eBCa71ad05Ac23d20822b", 10 + Sponsor = "0x9260D9c0545fFB6FA3e5EF4262d63146a57e31E1" 11 11 }
+1 -1
packages/data/features.ts
··· 3 3 }; 4 4 5 5 export const Access = { 6 - [Features.Staff]: ["0x67001C152f2ca4551Df07AfD176083802ECB4cFd"] 6 + [Features.Staff]: ["0x253DEB93B71D08442ab6736c8aEee982Ff9481BF"] 7 7 };
+2 -9
packages/helpers/collectActionParams.ts
··· 4 4 const collectActionParams = ( 5 5 collectAction: CollectActionType 6 6 ): PostActionConfigInput | null => { 7 - const { amount, collectLimit, endsAt, recipients, referralShare } = 8 - collectAction; 7 + const { payToCollect, collectLimit, endsAt } = collectAction; 9 8 10 9 return { 11 - simpleCollect: { 12 - amount: amount ?? undefined, 13 - collectLimit: collectLimit ?? undefined, 14 - endsAt: endsAt ?? undefined, 15 - recipients: recipients ?? undefined, 16 - referralShare: referralShare ?? undefined 17 - } 10 + simpleCollect: { payToCollect, collectLimit, endsAt } 18 11 }; 19 12 }; 20 13
+8 -5
packages/helpers/getCollectActionData.ts
··· 17 17 switch (collectAction.__typename) { 18 18 case "SimpleCollectAction": 19 19 return { 20 - amount: Number.parseFloat(collectAction.amount?.value || "0"), 21 - assetAddress: collectAction.amount?.asset?.contract?.address, 22 - assetDecimals: collectAction.amount?.asset?.decimals, 23 - assetSymbol: collectAction.amount?.asset?.symbol, 20 + amount: Number.parseFloat( 21 + collectAction.payToCollect?.amount?.value || "0" 22 + ), 23 + assetAddress: 24 + collectAction.payToCollect?.amount?.asset?.contract?.address, 25 + assetDecimals: collectAction.payToCollect?.amount?.asset?.decimals, 26 + assetSymbol: collectAction.payToCollect?.amount?.asset?.symbol, 24 27 collectLimit: Number(collectAction.collectLimit), 25 28 endsAt: collectAction.endsAt, 26 - recipients: collectAction.recipients || [] 29 + recipients: collectAction.payToCollect?.recipients || [] 27 30 }; 28 31 default: 29 32 return null;
+8 -7
packages/indexer/documents/fragments/post/collect/SimpleCollectAction.graphql
··· 1 1 fragment SimpleCollectAction on SimpleCollectAction { 2 2 address 3 - referralShare 4 3 collectLimit 5 4 endsAt 6 - recipients { 7 - address 8 - percent 9 - } 10 - amount { 11 - ...Erc20Amount 5 + payToCollect { 6 + recipients { 7 + address 8 + percent 9 + } 10 + amount { 11 + ...Erc20Amount 12 + } 12 13 } 13 14 }
+112 -49
packages/indexer/generated.ts
··· 80 80 unknown?: InputMaybe<UnknownActionExecuteInput>; 81 81 }; 82 82 83 + export type AccountActionExecuted = TippingAccountActionExecuted | UnknownAccountActionExecuted; 84 + 85 + export type AccountActionExecutedNotification = { 86 + __typename?: 'AccountActionExecutedNotification'; 87 + actions: Array<AccountActionExecuted>; 88 + id: Scalars['GeneratedNotificationId']['output']; 89 + }; 90 + 83 91 export type AccountActionFilter = { 84 92 address?: InputMaybe<Scalars['EvmAddress']['input']>; 85 93 tipping?: InputMaybe<Scalars['AlwaysTrue']['input']>; ··· 510 518 }; 511 519 512 520 export type AddAppSignersResult = SelfFundedTransactionRequest | SponsoredTransactionRequest | TransactionWillFail; 513 - 514 - export type AddGroupMembersRequest = { 515 - accounts: Array<Scalars['EvmAddress']['input']>; 516 - group: Scalars['EvmAddress']['input']; 517 - rulesProcessingParams?: InputMaybe<Array<GroupRulesProcessingParams>>; 518 - }; 519 - 520 - export type AddGroupMembersResponse = { 521 - __typename?: 'AddGroupMembersResponse'; 522 - hash: Scalars['TxHash']['output']; 523 - }; 524 - 525 - export type AddGroupMembersResult = AddGroupMembersResponse | GroupOperationValidationFailed | SelfFundedTransactionRequest | SponsoredTransactionRequest | TransactionWillFail; 526 521 527 522 export type AddReactionFailure = { 528 523 __typename?: 'AddReactionFailure'; ··· 961 956 962 957 export type CreateAccountWithUsernameRequest = { 963 958 accountManager?: InputMaybe<Array<Scalars['EvmAddress']['input']>>; 964 - assignNamespaceRuleProcessingParams?: InputMaybe<Array<NamespaceRulesProcessingParams>>; 965 - createNamespaceRuleProcessingParams?: InputMaybe<Array<NamespaceRulesProcessingParams>>; 959 + assignUsernameRuleProcessingParams?: InputMaybe<Array<NamespaceRulesProcessingParams>>; 960 + createUsernameRuleProcessingParams?: InputMaybe<Array<NamespaceRulesProcessingParams>>; 966 961 enableSignless?: Scalars['Boolean']['input']; 967 962 metadataUri: Scalars['URI']['input']; 968 - unassignAccountNamespaceRuleProcessingParams?: InputMaybe<Array<NamespaceRulesProcessingParams>>; 969 963 username: UsernameInput; 970 964 }; 971 965 ··· 1962 1956 ruleId: Scalars['RuleId']['output']; 1963 1957 }; 1964 1958 1959 + export type GroupMembershipRequestApprovedNotification = { 1960 + __typename?: 'GroupMembershipRequestApprovedNotification'; 1961 + approvedBy: Account; 1962 + group: Group; 1963 + id: Scalars['GeneratedNotificationId']['output']; 1964 + }; 1965 + 1966 + export type GroupMembershipRequestRejectedNotification = { 1967 + __typename?: 'GroupMembershipRequestRejectedNotification'; 1968 + group: Group; 1969 + id: Scalars['GeneratedNotificationId']['output']; 1970 + rejectedBy: Account; 1971 + }; 1972 + 1965 1973 export type GroupMembershipRequestsFilter = { 1966 1974 searchBy?: InputMaybe<UsernameSearchInput>; 1967 1975 }; ··· 2674 2682 addAppFeeds: AddAppFeedsResult; 2675 2683 addAppGroups: AddAppGroupsResult; 2676 2684 addAppSigners: AddAppSignersResult; 2677 - addGroupMembers: AddGroupMembersResult; 2678 2685 addPostNotInterested: Scalars['Void']['output']; 2679 2686 addReaction: AddReactionResult; 2680 2687 approveGroupMembershipRequests: ApproveGroupMembershipResult; ··· 2811 2818 }; 2812 2819 2813 2820 2814 - export type MutationAddGroupMembersArgs = { 2815 - request: AddGroupMembersRequest; 2816 - }; 2817 - 2818 - 2819 2821 export type MutationAddPostNotInterestedArgs = { 2820 2822 request: PostNotInterestedRequest; 2821 2823 }; ··· 3488 3490 txHasMined: Scalars['Boolean']['output']; 3489 3491 }; 3490 3492 3491 - export type Notification = CommentNotification | FollowNotification | MentionNotification | QuoteNotification | ReactionNotification | RepostNotification; 3493 + export type Notification = AccountActionExecutedNotification | CommentNotification | FollowNotification | GroupMembershipRequestApprovedNotification | GroupMembershipRequestRejectedNotification | MentionNotification | PostActionExecutedNotification | QuoteNotification | ReactionNotification | RepostNotification; 3492 3494 3493 3495 export type NotificationAccountFollow = { 3494 3496 __typename?: 'NotificationAccountFollow'; ··· 3531 3533 3532 3534 export enum NotificationType { 3533 3535 Commented = 'COMMENTED', 3536 + ExecutedAccountAction = 'EXECUTED_ACCOUNT_ACTION', 3537 + ExecutedPostAction = 'EXECUTED_POST_ACTION', 3534 3538 Followed = 'FOLLOWED', 3539 + GroupMembershipRequestApproved = 'GROUP_MEMBERSHIP_REQUEST_APPROVED', 3540 + GroupMembershipRequestRejected = 'GROUP_MEMBERSHIP_REQUEST_REJECTED', 3535 3541 Mentioned = 'MENTIONED', 3536 3542 Quoted = 'QUOTED', 3537 3543 Reacted = 'REACTED', ··· 3740 3746 3741 3747 export type PausingResult = SelfFundedTransactionRequest | SponsoredTransactionRequest | TransactionWillFail; 3742 3748 3749 + export type PayToCollectConfig = { 3750 + __typename?: 'PayToCollectConfig'; 3751 + amount: Erc20Amount; 3752 + recipients: Array<RecipientPercent>; 3753 + referralShare?: Maybe<Scalars['Float']['output']>; 3754 + }; 3755 + 3756 + export type PayToCollectInput = { 3757 + amount: AmountInput; 3758 + recipients: Array<RecipientPercentInput>; 3759 + referralShare?: InputMaybe<Scalars['Float']['input']>; 3760 + }; 3761 + 3743 3762 export type PaymasterParams = { 3744 3763 __typename?: 'PaymasterParams'; 3745 3764 paymaster: Scalars['EvmAddress']['output']; ··· 3820 3839 simpleCollect?: InputMaybe<SimpleCollectExecuteInput>; 3821 3840 tipping?: InputMaybe<AmountInput>; 3822 3841 unknown?: InputMaybe<UnknownActionExecuteInput>; 3842 + }; 3843 + 3844 + export type PostActionExecuted = SimpleCollectPostActionExecuted | TippingPostActionExecuted | UnknownPostActionExecuted; 3845 + 3846 + export type PostActionExecutedNotification = { 3847 + __typename?: 'PostActionExecutedNotification'; 3848 + actions: Array<PostActionExecuted>; 3849 + id: Scalars['GeneratedNotificationId']['output']; 3850 + post: Post; 3823 3851 }; 3824 3852 3825 3853 export type PostActionFilter = { ··· 4663 4691 export type RecipientPercent = { 4664 4692 __typename?: 'RecipientPercent'; 4665 4693 address: Scalars['EvmAddress']['output']; 4666 - percent: Scalars['Int']['output']; 4694 + percent: Scalars['Float']['output']; 4667 4695 }; 4668 4696 4669 4697 export type RecipientPercentInput = { 4670 4698 address: Scalars['EvmAddress']['input']; 4671 - percent: Scalars['Int']['input']; 4699 + percent: Scalars['Float']['input']; 4672 4700 }; 4673 4701 4674 4702 export type RecommendAccount = { ··· 4682 4710 4683 4711 export type ReferralCut = { 4684 4712 address: Scalars['EvmAddress']['input']; 4685 - percent: Scalars['Int']['input']; 4713 + percent: Scalars['Float']['input']; 4686 4714 }; 4687 4715 4688 4716 export type RefreshMetadataRequest = { ··· 4945 4973 export type SimpleCollectAction = { 4946 4974 __typename?: 'SimpleCollectAction'; 4947 4975 address: Scalars['EvmAddress']['output']; 4948 - amount?: Maybe<Erc20Amount>; 4949 4976 collectLimit?: Maybe<Scalars['Int']['output']>; 4950 4977 collectNftAddress: Scalars['EvmAddress']['output']; 4951 4978 endsAt?: Maybe<Scalars['DateTime']['output']>; 4952 4979 followerOnGraph?: Maybe<FollowerOn>; 4953 4980 isImmutable: Scalars['Boolean']['output']; 4954 - recipients?: Maybe<Array<RecipientPercent>>; 4955 - referralShare?: Maybe<Scalars['Int']['output']>; 4981 + payToCollect?: Maybe<PayToCollectConfig>; 4956 4982 }; 4957 4983 4958 4984 export type SimpleCollectActionConfigInput = { 4959 - amount?: InputMaybe<AmountInput>; 4960 4985 collectLimit?: InputMaybe<Scalars['Int']['input']>; 4961 4986 endsAt?: InputMaybe<Scalars['DateTime']['input']>; 4962 4987 followerOnGraph?: InputMaybe<FollowerOnInput>; 4963 4988 isImmutable?: Scalars['Boolean']['input']; 4964 - recipients?: InputMaybe<Array<RecipientPercentInput>>; 4965 - referralShare?: InputMaybe<Scalars['Int']['input']>; 4989 + payToCollect?: InputMaybe<PayToCollectInput>; 4966 4990 }; 4967 4991 4968 4992 export type SimpleCollectActionContract = { ··· 4975 4999 selected: Scalars['AlwaysTrue']['input']; 4976 5000 }; 4977 5001 5002 + export type SimpleCollectPostActionExecuted = { 5003 + __typename?: 'SimpleCollectPostActionExecuted'; 5004 + action: SimpleCollectAction; 5005 + executedAt: Scalars['DateTime']['output']; 5006 + executedBy: Account; 5007 + }; 5008 + 4978 5009 export type SimpleCollectValidationFailed = { 4979 5010 __typename?: 'SimpleCollectValidationFailed'; 4980 5011 reason: Scalars['String']['output']; ··· 5013 5044 }; 5014 5045 5015 5046 export enum SnsNotificationType { 5047 + AccountActionExecuted = 'ACCOUNT_ACTION_EXECUTED', 5016 5048 AccountBlocked = 'ACCOUNT_BLOCKED', 5017 5049 AccountContentConsumed = 'ACCOUNT_CONTENT_CONSUMED', 5018 5050 AccountCreated = 'ACCOUNT_CREATED', ··· 5034 5066 MediaSnapshotSuccess = 'MEDIA_SNAPSHOT_SUCCESS', 5035 5067 MetadataSnapshotError = 'METADATA_SNAPSHOT_ERROR', 5036 5068 MetadataSnapshotSuccess = 'METADATA_SNAPSHOT_SUCCESS', 5037 - MlProfileSignal = 'MlProfileSignal', 5038 - PostActionCompleted = 'POST_ACTION_COMPLETED', 5069 + MlAccountSignal = 'ML_ACCOUNT_SIGNAL', 5070 + PostActionExecuted = 'POST_ACTION_EXECUTED', 5039 5071 PostCollected = 'POST_COLLECTED', 5040 5072 PostCreated = 'POST_CREATED', 5041 5073 PostDeleted = 'POST_DELETED', ··· 5103 5135 }; 5104 5136 5105 5137 export enum SponsoredFallbackReason { 5106 - InvolvesFunds = 'INVOLVES_FUNDS', 5138 + CannotDelegate = 'CANNOT_DELEGATE', 5139 + RequiresSignature = 'REQUIRES_SIGNATURE', 5107 5140 SignlessDisabled = 'SIGNLESS_DISABLED', 5108 5141 SignlessFailed = 'SIGNLESS_FAILED' 5109 5142 } ··· 5846 5879 address: Scalars['EvmAddress']['output']; 5847 5880 }; 5848 5881 5882 + export type TippingAccountActionExecuted = { 5883 + __typename?: 'TippingAccountActionExecuted'; 5884 + amount: Erc20Amount; 5885 + executedAt: Scalars['DateTime']['output']; 5886 + executedBy: Account; 5887 + }; 5888 + 5849 5889 export type TippingPostActionContract = { 5850 5890 __typename?: 'TippingPostActionContract'; 5851 5891 address: Scalars['EvmAddress']['output']; 5892 + }; 5893 + 5894 + export type TippingPostActionExecuted = { 5895 + __typename?: 'TippingPostActionExecuted'; 5896 + amount: Erc20Amount; 5897 + executedAt: Scalars['DateTime']['output']; 5898 + executedBy: Account; 5852 5899 }; 5853 5900 5854 5901 export type TokenAmountInput = { ··· 6001 6048 GroupRuleReconfigured = 'GROUP_RULE_RECONFIGURED', 6002 6049 GroupRuleSelectorDisabled = 'GROUP_RULE_SELECTOR_DISABLED', 6003 6050 GroupRuleSelectorEnabled = 'GROUP_RULE_SELECTOR_ENABLED', 6051 + NamespaceExtraDataAdded = 'NAMESPACE_EXTRA_DATA_ADDED', 6052 + NamespaceExtraDataRemoved = 'NAMESPACE_EXTRA_DATA_REMOVED', 6053 + NamespaceExtraDataUpdated = 'NAMESPACE_EXTRA_DATA_UPDATED', 6004 6054 NamespaceFactoryDeployment = 'NAMESPACE_FACTORY_DEPLOYMENT', 6055 + NamespaceMetadataUriSet = 'NAMESPACE_METADATA_URI_SET', 6005 6056 PostActionConfigured = 'POST_ACTION_CONFIGURED', 6006 6057 PostActionDisabled = 'POST_ACTION_DISABLED', 6007 6058 PostActionEnabled = 'POST_ACTION_ENABLED', ··· 6021 6072 SponsorshipSignerAdded = 'SPONSORSHIP_SIGNER_ADDED', 6022 6073 SponsorshipSignerRemoved = 'SPONSORSHIP_SIGNER_REMOVED', 6023 6074 SponsorshipUnpaused = 'SPONSORSHIP_UNPAUSED', 6024 - SponsorAddedToApprovedSigners = 'SPONSOR_ADDED_TO_APPROVED_SIGNERS', 6025 - SponsorFreePaymasterCreated = 'SPONSOR_FREE_PAYMASTER_CREATED', 6026 - SponsorMetadataUriChanged = 'SPONSOR_METADATA_URI_CHANGED', 6027 6075 UsernameAccessControlAdded = 'USERNAME_ACCESS_CONTROL_ADDED', 6028 6076 UsernameAccessControlUpdated = 'USERNAME_ACCESS_CONTROL_UPDATED', 6029 6077 UsernameAssigned = 'USERNAME_ASSIGNED', ··· 6031 6079 UsernameExtraDataAdded = 'USERNAME_EXTRA_DATA_ADDED', 6032 6080 UsernameExtraDataRemoved = 'USERNAME_EXTRA_DATA_REMOVED', 6033 6081 UsernameExtraDataUpdated = 'USERNAME_EXTRA_DATA_UPDATED', 6034 - UsernameMetadataUriSet = 'USERNAME_METADATA_URI_SET', 6035 6082 UsernameReleased = 'USERNAME_RELEASED', 6036 6083 UsernameRemoved = 'USERNAME_REMOVED', 6037 6084 UsernameReserved = 'USERNAME_RESERVED', ··· 6141 6188 metadata?: Maybe<ActionMetadata>; 6142 6189 }; 6143 6190 6191 + export type UnknownAccountActionExecuted = { 6192 + __typename?: 'UnknownAccountActionExecuted'; 6193 + action: UnknownAccountAction; 6194 + executedAt: Scalars['DateTime']['output']; 6195 + executedBy: Account; 6196 + params: Array<RawKeyValue>; 6197 + }; 6198 + 6144 6199 export type UnknownAccountRuleConfig = { 6145 6200 address: Scalars['EvmAddress']['input']; 6146 6201 params?: InputMaybe<Array<AnyKeyValueInput>>; ··· 6191 6246 __typename?: 'UnknownPostActionContract'; 6192 6247 address: Scalars['EvmAddress']['output']; 6193 6248 metadata?: Maybe<ActionMetadata>; 6249 + }; 6250 + 6251 + export type UnknownPostActionExecuted = { 6252 + __typename?: 'UnknownPostActionExecuted'; 6253 + action: UnknownPostAction; 6254 + executedAt: Scalars['DateTime']['output']; 6255 + executedBy: Account; 6256 + params: Array<RawKeyValue>; 6194 6257 }; 6195 6258 6196 6259 export type UnknownPostMetadata = { ··· 6918 6981 & PostFragment 6919 6982 ) }; 6920 6983 6921 - export type SimpleCollectActionFragment = { __typename?: 'SimpleCollectAction', address: any, referralShare?: number | null, collectLimit?: number | null, endsAt?: any | null, recipients?: Array<{ __typename?: 'RecipientPercent', address: any, percent: number }> | null, amount?: ( 6922 - { __typename?: 'Erc20Amount' } 6923 - & Erc20AmountFragment 6924 - ) | null }; 6984 + export type SimpleCollectActionFragment = { __typename?: 'SimpleCollectAction', address: any, collectLimit?: number | null, endsAt?: any | null, payToCollect?: { __typename?: 'PayToCollectConfig', recipients: Array<{ __typename?: 'RecipientPercent', address: any, percent: number }>, amount: ( 6985 + { __typename?: 'Erc20Amount' } 6986 + & Erc20AmountFragment 6987 + ) } | null }; 6925 6988 6926 6989 export type UnknownPostActionFragment = { __typename: 'UnknownPostAction' }; 6927 6990 ··· 7879 7942 }>; 7880 7943 7881 7944 7882 - export type NotificationsQuery = { __typename?: 'Query', notifications: { __typename?: 'PaginatedNotificationResult', items: Array<( 7945 + export type NotificationsQuery = { __typename?: 'Query', notifications: { __typename?: 'PaginatedNotificationResult', items: Array<{ __typename?: 'AccountActionExecutedNotification' } | ( 7883 7946 { __typename?: 'CommentNotification' } 7884 7947 & CommentNotificationFragment 7885 7948 ) | ( 7886 7949 { __typename?: 'FollowNotification' } 7887 7950 & FollowNotificationFragment 7888 - ) | ( 7951 + ) | { __typename?: 'GroupMembershipRequestApprovedNotification' } | { __typename?: 'GroupMembershipRequestRejectedNotification' } | ( 7889 7952 { __typename?: 'MentionNotification' } 7890 7953 & MentionNotificationFragment 7891 - ) | ( 7954 + ) | { __typename?: 'PostActionExecutedNotification' } | ( 7892 7955 { __typename?: 'QuoteNotification' } 7893 7956 & QuoteNotificationFragment 7894 7957 ) | ( ··· 8231 8294 export const AnyPostFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"AnyPost"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"AnyPost"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Post"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"Post"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Repost"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"Repost"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"AnyKeyValue"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"AnyKeyValue"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"AddressKeyValue"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"key"}},{"kind":"Field","name":{"kind":"Name","value":"address"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BigDecimalKeyValue"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"key"}},{"kind":"Field","name":{"kind":"Name","value":"bigDecimal"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"StringKeyValue"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"key"}},{"kind":"Field","name":{"kind":"Name","value":"string"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"BooleanValue"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BooleanValue"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"onChain"}},{"kind":"Field","name":{"kind":"Name","value":"optimistic"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"Account"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Account"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"owner"}},{"kind":"Field","name":{"kind":"Name","value":"address"}},{"kind":"Field","name":{"kind":"Name","value":"rules"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"anyOf"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"AccountFollowRule"}}]}},{"kind":"Field","name":{"kind":"Name","value":"required"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"AccountFollowRule"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"operations"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"LoggedInAccountOperations"}}]}},{"kind":"Field","name":{"kind":"Name","value":"metadata"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"AccountMetadata"}}]}},{"kind":"Field","name":{"kind":"Name","value":"username"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"request"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"autoResolve"},"value":{"kind":"BooleanValue","value":true}}]}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"Username"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"AccountFollowRule"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"AccountFollowRule"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"config"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"AnyKeyValue"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"AccountMetadata"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"AccountMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"bio"}},{"kind":"Field","name":{"kind":"Name","value":"picture"}},{"kind":"Field","name":{"kind":"Name","value":"coverPicture"}},{"kind":"Field","name":{"kind":"Name","value":"attributes"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"MetadataAttribute"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"LoggedInAccountOperations"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"LoggedInAccountOperations"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"isFollowedByMe"}},{"kind":"Field","name":{"kind":"Name","value":"isFollowingMe"}},{"kind":"Field","name":{"kind":"Name","value":"isMutedByMe"}},{"kind":"Field","name":{"kind":"Name","value":"isBlockedByMe"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"Username"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Username"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"namespace"}},{"kind":"Field","name":{"kind":"Name","value":"localName"}},{"kind":"Field","name":{"kind":"Name","value":"linkedTo"}},{"kind":"Field","name":{"kind":"Name","value":"value"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"GroupMetadata"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GroupMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"coverPicture"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"AccountMention"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"AccountMention"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"account"}},{"kind":"Field","name":{"kind":"Name","value":"namespace"}},{"kind":"Field","name":{"kind":"Name","value":"replace"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"from"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"GroupMention"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GroupMention"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"group"}},{"kind":"Field","name":{"kind":"Name","value":"replace"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"from"}},{"kind":"Field","name":{"kind":"Name","value":"to"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"LoggedInPostOperations"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"LoggedInPostOperations"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"hasBookmarked"}},{"kind":"Field","name":{"kind":"Name","value":"hasReacted"}},{"kind":"Field","name":{"kind":"Name","value":"hasSimpleCollected"}},{"kind":"Field","name":{"kind":"Name","value":"hasTipped"}},{"kind":"Field","name":{"kind":"Name","value":"isNotInterested"}},{"kind":"Field","name":{"kind":"Name","value":"hasQuoted"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"BooleanValue"}}]}},{"kind":"Field","name":{"kind":"Name","value":"hasReposted"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"BooleanValue"}}]}},{"kind":"Field","name":{"kind":"Name","value":"canRepost"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}}]}},{"kind":"Field","name":{"kind":"Name","value":"canQuote"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}}]}},{"kind":"Field","name":{"kind":"Name","value":"canComment"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"Post"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Post"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ReferencedPost"}},{"kind":"Field","name":{"kind":"Name","value":"root"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ReferencedPost"}}]}},{"kind":"Field","name":{"kind":"Name","value":"commentOn"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ReferencedPost"}}]}},{"kind":"Field","name":{"kind":"Name","value":"quoteOf"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ReferencedPost"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"PostFeedInfo"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PostFeedInfo"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"group"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"PostGroupInfo"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"PostGroupInfo"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PostGroupInfo"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"address"}},{"kind":"Field","name":{"kind":"Name","value":"metadata"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"GroupMetadata"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"PostMention"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PostMention"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"AccountMention"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"AccountMention"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GroupMention"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"GroupMention"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"PostMetadata"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PostMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"VideoMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"VideoMetadata"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ArticleMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ArticleMetadata"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"AudioMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"AudioMetadata"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ImageMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ImageMetadata"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"LinkMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"LinkMetadata"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"LivestreamMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"LivestreamMetadata"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"MintMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"MintMetadata"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"TextOnlyMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"TextOnlyMetadata"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CheckingInMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"CheckingInMetadata"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"SpaceMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"SpaceMetadata"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"StoryMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"StoryMetadata"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ThreeDMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ThreeDMetadata"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"EmbedMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"EmbedMetadata"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"TransactionMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"TransactionMetadata"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"EventMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"EventMetadata"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"PostStats"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PostStats"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"bookmarks"}},{"kind":"Field","name":{"kind":"Name","value":"comments"}},{"kind":"Field","name":{"kind":"Name","value":"quotes"}},{"kind":"Field","name":{"kind":"Name","value":"reactions"}},{"kind":"Field","name":{"kind":"Name","value":"reposts"}},{"kind":"Field","name":{"kind":"Name","value":"collects"}},{"kind":"Field","name":{"kind":"Name","value":"tips"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ReferencedPost"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Post"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"isDeleted"}},{"kind":"Field","name":{"kind":"Name","value":"feed"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"PostFeedInfo"}}]}},{"kind":"Field","name":{"kind":"Name","value":"author"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"Account"}}]}},{"kind":"Field","name":{"kind":"Name","value":"metadata"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"PostMetadata"}}]}},{"kind":"Field","name":{"kind":"Name","value":"stats"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"PostStats"}}]}},{"kind":"Field","name":{"kind":"Name","value":"operations"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"LoggedInPostOperations"}}]}},{"kind":"Field","name":{"kind":"Name","value":"actions"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}}]}},{"kind":"Field","name":{"kind":"Name","value":"mentions"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"PostMention"}}]}},{"kind":"Field","name":{"kind":"Name","value":"timestamp"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"Repost"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Repost"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"isDeleted"}},{"kind":"Field","name":{"kind":"Name","value":"author"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"Account"}}]}},{"kind":"Field","name":{"kind":"Name","value":"repostOf"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"Post"}}]}},{"kind":"Field","name":{"kind":"Name","value":"timestamp"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ArticleMetadata"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ArticleMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"content"}},{"kind":"Field","name":{"kind":"Name","value":"contentWarning"}},{"kind":"Field","name":{"kind":"Name","value":"tags"}},{"kind":"Field","name":{"kind":"Name","value":"attributes"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"MetadataAttribute"}}]}},{"kind":"Field","name":{"kind":"Name","value":"attachments"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"AnyMedia"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"AudioMetadata"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"AudioMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"title"}},{"kind":"Field","name":{"kind":"Name","value":"content"}},{"kind":"Field","name":{"kind":"Name","value":"contentWarning"}},{"kind":"Field","name":{"kind":"Name","value":"tags"}},{"kind":"Field","name":{"kind":"Name","value":"attributes"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"MetadataAttribute"}}]}},{"kind":"Field","name":{"kind":"Name","value":"audio"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"MediaAudio"}}]}},{"kind":"Field","name":{"kind":"Name","value":"attachments"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"AnyMedia"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"CheckingInMetadata"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CheckingInMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"content"}},{"kind":"Field","name":{"kind":"Name","value":"contentWarning"}},{"kind":"Field","name":{"kind":"Name","value":"tags"}},{"kind":"Field","name":{"kind":"Name","value":"attributes"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"MetadataAttribute"}}]}},{"kind":"Field","name":{"kind":"Name","value":"attachments"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"AnyMedia"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"EmbedMetadata"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"EmbedMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"content"}},{"kind":"Field","name":{"kind":"Name","value":"contentWarning"}},{"kind":"Field","name":{"kind":"Name","value":"tags"}},{"kind":"Field","name":{"kind":"Name","value":"attributes"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"MetadataAttribute"}}]}},{"kind":"Field","name":{"kind":"Name","value":"attachments"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"AnyMedia"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"EventMetadata"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"EventMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"content"}},{"kind":"Field","name":{"kind":"Name","value":"contentWarning"}},{"kind":"Field","name":{"kind":"Name","value":"tags"}},{"kind":"Field","name":{"kind":"Name","value":"attributes"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"MetadataAttribute"}}]}},{"kind":"Field","name":{"kind":"Name","value":"attachments"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"AnyMedia"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ImageMetadata"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ImageMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"content"}},{"kind":"Field","name":{"kind":"Name","value":"contentWarning"}},{"kind":"Field","name":{"kind":"Name","value":"tags"}},{"kind":"Field","name":{"kind":"Name","value":"attributes"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"MetadataAttribute"}}]}},{"kind":"Field","name":{"kind":"Name","value":"attachments"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"AnyMedia"}}]}},{"kind":"Field","name":{"kind":"Name","value":"image"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"MediaImage"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"LinkMetadata"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"LinkMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"content"}},{"kind":"Field","name":{"kind":"Name","value":"contentWarning"}},{"kind":"Field","name":{"kind":"Name","value":"sharingLink"}},{"kind":"Field","name":{"kind":"Name","value":"tags"}},{"kind":"Field","name":{"kind":"Name","value":"attributes"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"MetadataAttribute"}}]}},{"kind":"Field","name":{"kind":"Name","value":"attachments"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"AnyMedia"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"LivestreamMetadata"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"LivestreamMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"playbackUrl"}},{"kind":"Field","name":{"kind":"Name","value":"liveUrl"}},{"kind":"Field","name":{"kind":"Name","value":"content"}},{"kind":"Field","name":{"kind":"Name","value":"contentWarning"}},{"kind":"Field","name":{"kind":"Name","value":"tags"}},{"kind":"Field","name":{"kind":"Name","value":"attributes"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"MetadataAttribute"}}]}},{"kind":"Field","name":{"kind":"Name","value":"attachments"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"AnyMedia"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"MetadataAttribute"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"MetadataAttribute"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"key"}},{"kind":"Field","name":{"kind":"Name","value":"value"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"MintMetadata"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"MintMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"content"}},{"kind":"Field","name":{"kind":"Name","value":"contentWarning"}},{"kind":"Field","name":{"kind":"Name","value":"tags"}},{"kind":"Field","name":{"kind":"Name","value":"attributes"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"MetadataAttribute"}}]}},{"kind":"Field","name":{"kind":"Name","value":"attachments"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"AnyMedia"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"SpaceMetadata"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"SpaceMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"content"}},{"kind":"Field","name":{"kind":"Name","value":"contentWarning"}},{"kind":"Field","name":{"kind":"Name","value":"tags"}},{"kind":"Field","name":{"kind":"Name","value":"attributes"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"MetadataAttribute"}}]}},{"kind":"Field","name":{"kind":"Name","value":"attachments"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"AnyMedia"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"StoryMetadata"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"StoryMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"content"}},{"kind":"Field","name":{"kind":"Name","value":"contentWarning"}},{"kind":"Field","name":{"kind":"Name","value":"tags"}},{"kind":"Field","name":{"kind":"Name","value":"attributes"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"MetadataAttribute"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"TextOnlyMetadata"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"TextOnlyMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"content"}},{"kind":"Field","name":{"kind":"Name","value":"contentWarning"}},{"kind":"Field","name":{"kind":"Name","value":"tags"}},{"kind":"Field","name":{"kind":"Name","value":"attributes"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"MetadataAttribute"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ThreeDMetadata"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ThreeDMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"content"}},{"kind":"Field","name":{"kind":"Name","value":"contentWarning"}},{"kind":"Field","name":{"kind":"Name","value":"tags"}},{"kind":"Field","name":{"kind":"Name","value":"attributes"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"MetadataAttribute"}}]}},{"kind":"Field","name":{"kind":"Name","value":"attachments"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"AnyMedia"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"TransactionMetadata"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"TransactionMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"content"}},{"kind":"Field","name":{"kind":"Name","value":"contentWarning"}},{"kind":"Field","name":{"kind":"Name","value":"tags"}},{"kind":"Field","name":{"kind":"Name","value":"attributes"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"MetadataAttribute"}}]}},{"kind":"Field","name":{"kind":"Name","value":"attachments"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"AnyMedia"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"VideoMetadata"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"VideoMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"content"}},{"kind":"Field","name":{"kind":"Name","value":"contentWarning"}},{"kind":"Field","name":{"kind":"Name","value":"tags"}},{"kind":"Field","name":{"kind":"Name","value":"attributes"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"MetadataAttribute"}}]}},{"kind":"Field","name":{"kind":"Name","value":"video"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"MediaVideo"}}]}},{"kind":"Field","name":{"kind":"Name","value":"attachments"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"AnyMedia"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"AnyMedia"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"AnyMedia"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"MediaVideo"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"MediaVideo"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"MediaImage"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"MediaImage"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"MediaAudio"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"MediaAudio"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"MediaAudio"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"MediaAudio"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"artist"}},{"kind":"Field","name":{"kind":"Name","value":"item"}},{"kind":"Field","name":{"kind":"Name","value":"cover"}},{"kind":"Field","name":{"kind":"Name","value":"license"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"MediaImage"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"MediaImage"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"item"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"MediaVideo"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"MediaVideo"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"item"}},{"kind":"Field","name":{"kind":"Name","value":"cover"}},{"kind":"Field","name":{"kind":"Name","value":"license"}}]}}]} as unknown as DocumentNode; 8232 8295 export const Erc20FragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"Erc20"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Erc20"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"contract"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"address"}}]}},{"kind":"Field","name":{"kind":"Name","value":"decimals"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"symbol"}}]}}]} as unknown as DocumentNode; 8233 8296 export const Erc20AmountFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"Erc20Amount"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Erc20Amount"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"asset"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"Erc20"}}]}},{"kind":"Field","name":{"kind":"Name","value":"value"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"Erc20"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Erc20"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"contract"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"address"}}]}},{"kind":"Field","name":{"kind":"Name","value":"decimals"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"symbol"}}]}}]} as unknown as DocumentNode; 8234 - export const SimpleCollectActionFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"SimpleCollectAction"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"SimpleCollectAction"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"address"}},{"kind":"Field","name":{"kind":"Name","value":"referralShare"}},{"kind":"Field","name":{"kind":"Name","value":"collectLimit"}},{"kind":"Field","name":{"kind":"Name","value":"endsAt"}},{"kind":"Field","name":{"kind":"Name","value":"recipients"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"address"}},{"kind":"Field","name":{"kind":"Name","value":"percent"}}]}},{"kind":"Field","name":{"kind":"Name","value":"amount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"Erc20Amount"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"Erc20"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Erc20"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"contract"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"address"}}]}},{"kind":"Field","name":{"kind":"Name","value":"decimals"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"symbol"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"Erc20Amount"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Erc20Amount"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"asset"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"Erc20"}}]}},{"kind":"Field","name":{"kind":"Name","value":"value"}}]}}]} as unknown as DocumentNode; 8297 + export const SimpleCollectActionFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"SimpleCollectAction"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"SimpleCollectAction"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"address"}},{"kind":"Field","name":{"kind":"Name","value":"collectLimit"}},{"kind":"Field","name":{"kind":"Name","value":"endsAt"}},{"kind":"Field","name":{"kind":"Name","value":"payToCollect"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"recipients"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"address"}},{"kind":"Field","name":{"kind":"Name","value":"percent"}}]}},{"kind":"Field","name":{"kind":"Name","value":"amount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"Erc20Amount"}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"Erc20"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Erc20"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"contract"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"address"}}]}},{"kind":"Field","name":{"kind":"Name","value":"decimals"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"symbol"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"Erc20Amount"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Erc20Amount"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"asset"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"Erc20"}}]}},{"kind":"Field","name":{"kind":"Name","value":"value"}}]}}]} as unknown as DocumentNode; 8235 8298 export const UnknownPostActionFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"UnknownPostAction"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"UnknownPostAction"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}}]}}]} as unknown as DocumentNode; 8236 - export const PostActionFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"PostAction"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PostAction"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"SimpleCollectAction"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"SimpleCollectAction"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"UnknownPostAction"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"UnknownPostAction"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"Erc20"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Erc20"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"contract"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"address"}}]}},{"kind":"Field","name":{"kind":"Name","value":"decimals"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"symbol"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"Erc20Amount"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Erc20Amount"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"asset"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"Erc20"}}]}},{"kind":"Field","name":{"kind":"Name","value":"value"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"SimpleCollectAction"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"SimpleCollectAction"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"address"}},{"kind":"Field","name":{"kind":"Name","value":"referralShare"}},{"kind":"Field","name":{"kind":"Name","value":"collectLimit"}},{"kind":"Field","name":{"kind":"Name","value":"endsAt"}},{"kind":"Field","name":{"kind":"Name","value":"recipients"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"address"}},{"kind":"Field","name":{"kind":"Name","value":"percent"}}]}},{"kind":"Field","name":{"kind":"Name","value":"amount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"Erc20Amount"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"UnknownPostAction"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"UnknownPostAction"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}}]}}]} as unknown as DocumentNode; 8299 + export const PostActionFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"PostAction"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PostAction"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"SimpleCollectAction"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"SimpleCollectAction"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"UnknownPostAction"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"UnknownPostAction"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"Erc20"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Erc20"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"contract"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"address"}}]}},{"kind":"Field","name":{"kind":"Name","value":"decimals"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"symbol"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"Erc20Amount"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Erc20Amount"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"asset"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"Erc20"}}]}},{"kind":"Field","name":{"kind":"Name","value":"value"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"SimpleCollectAction"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"SimpleCollectAction"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"address"}},{"kind":"Field","name":{"kind":"Name","value":"collectLimit"}},{"kind":"Field","name":{"kind":"Name","value":"endsAt"}},{"kind":"Field","name":{"kind":"Name","value":"payToCollect"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"recipients"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"address"}},{"kind":"Field","name":{"kind":"Name","value":"percent"}}]}},{"kind":"Field","name":{"kind":"Name","value":"amount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"Erc20Amount"}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"UnknownPostAction"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"UnknownPostAction"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}}]}}]} as unknown as DocumentNode; 8237 8300 export const UnknownPostMetadataFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"UnknownPostMetadata"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"UnknownPostMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"raw"}}]}}]} as unknown as DocumentNode; 8238 8301 export const SelfFundedTransactionRequestFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"SelfFundedTransactionRequest"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"SelfFundedTransactionRequest"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"reason"}},{"kind":"Field","name":{"kind":"Name","value":"raw"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"chainId"}},{"kind":"Field","name":{"kind":"Name","value":"data"}},{"kind":"Field","name":{"kind":"Name","value":"from"}},{"kind":"Field","name":{"kind":"Name","value":"gasLimit"}},{"kind":"Field","name":{"kind":"Name","value":"maxFeePerGas"}},{"kind":"Field","name":{"kind":"Name","value":"maxPriorityFeePerGas"}},{"kind":"Field","name":{"kind":"Name","value":"nonce"}},{"kind":"Field","name":{"kind":"Name","value":"to"}},{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"value"}}]}}]}}]} as unknown as DocumentNode; 8239 8302 export const SponsoredTransactionRequestFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"SponsoredTransactionRequest"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"SponsoredTransactionRequest"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"reason"}},{"kind":"Field","name":{"kind":"Name","value":"raw"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"chainId"}},{"kind":"Field","name":{"kind":"Name","value":"data"}},{"kind":"Field","name":{"kind":"Name","value":"from"}},{"kind":"Field","name":{"kind":"Name","value":"gasLimit"}},{"kind":"Field","name":{"kind":"Name","value":"maxFeePerGas"}},{"kind":"Field","name":{"kind":"Name","value":"maxPriorityFeePerGas"}},{"kind":"Field","name":{"kind":"Name","value":"nonce"}},{"kind":"Field","name":{"kind":"Name","value":"to"}},{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"value"}},{"kind":"Field","name":{"kind":"Name","value":"customData"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"customSignature"}},{"kind":"Field","name":{"kind":"Name","value":"factoryDeps"}},{"kind":"Field","name":{"kind":"Name","value":"gasPerPubdata"}},{"kind":"Field","name":{"kind":"Name","value":"paymasterParams"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"paymaster"}},{"kind":"Field","name":{"kind":"Name","value":"paymasterInput"}}]}}]}}]}}]}}]} as unknown as DocumentNode; ··· 8914 8977 export type MlPostsForYouQueryHookResult = ReturnType<typeof useMlPostsForYouQuery>; 8915 8978 export type MlPostsForYouLazyQueryHookResult = ReturnType<typeof useMlPostsForYouLazyQuery>; 8916 8979 export type MlPostsForYouSuspenseQueryHookResult = ReturnType<typeof useMlPostsForYouSuspenseQuery>; 8917 - export const CollectActionDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"CollectAction"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"request"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"PostRequest"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"post"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"request"},"value":{"kind":"Variable","name":{"kind":"Name","value":"request"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Post"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"actions"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"PostAction"}}]}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Repost"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"repostOf"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"actions"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"PostAction"}}]}}]}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"Erc20"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Erc20"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"contract"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"address"}}]}},{"kind":"Field","name":{"kind":"Name","value":"decimals"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"symbol"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"Erc20Amount"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Erc20Amount"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"asset"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"Erc20"}}]}},{"kind":"Field","name":{"kind":"Name","value":"value"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"PostAction"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PostAction"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"SimpleCollectAction"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"SimpleCollectAction"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"UnknownPostAction"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"UnknownPostAction"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"SimpleCollectAction"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"SimpleCollectAction"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"address"}},{"kind":"Field","name":{"kind":"Name","value":"referralShare"}},{"kind":"Field","name":{"kind":"Name","value":"collectLimit"}},{"kind":"Field","name":{"kind":"Name","value":"endsAt"}},{"kind":"Field","name":{"kind":"Name","value":"recipients"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"address"}},{"kind":"Field","name":{"kind":"Name","value":"percent"}}]}},{"kind":"Field","name":{"kind":"Name","value":"amount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"Erc20Amount"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"UnknownPostAction"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"UnknownPostAction"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}}]}}]} as unknown as DocumentNode; 8980 + export const CollectActionDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"CollectAction"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"request"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"PostRequest"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"post"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"request"},"value":{"kind":"Variable","name":{"kind":"Name","value":"request"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Post"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"actions"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"PostAction"}}]}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Repost"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"repostOf"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"actions"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"PostAction"}}]}}]}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"Erc20"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Erc20"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"contract"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"address"}}]}},{"kind":"Field","name":{"kind":"Name","value":"decimals"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"symbol"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"Erc20Amount"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Erc20Amount"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"asset"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"Erc20"}}]}},{"kind":"Field","name":{"kind":"Name","value":"value"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"PostAction"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PostAction"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"SimpleCollectAction"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"SimpleCollectAction"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"UnknownPostAction"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"UnknownPostAction"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"SimpleCollectAction"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"SimpleCollectAction"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"address"}},{"kind":"Field","name":{"kind":"Name","value":"collectLimit"}},{"kind":"Field","name":{"kind":"Name","value":"endsAt"}},{"kind":"Field","name":{"kind":"Name","value":"payToCollect"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"recipients"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"address"}},{"kind":"Field","name":{"kind":"Name","value":"percent"}}]}},{"kind":"Field","name":{"kind":"Name","value":"amount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"Erc20Amount"}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"UnknownPostAction"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"UnknownPostAction"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}}]}}]} as unknown as DocumentNode; 8918 8981 export function useCollectActionQuery(baseOptions: Apollo.QueryHookOptions<CollectActionQuery, CollectActionQueryVariables> & ({ variables: CollectActionQueryVariables; skip?: boolean; } | { skip: boolean; }) ) { 8919 8982 const options = {...defaultOptions, ...baseOptions} 8920 8983 return Apollo.useQuery<CollectActionQuery, CollectActionQueryVariables>(CollectActionDocument, options);
+13 -7
packages/indexer/possible-types.ts
··· 6 6 const result: PossibleTypesResultData = { 7 7 possibleTypes: { 8 8 AccountAction: ["TippingAccountAction", "UnknownAccountAction"], 9 + AccountActionExecuted: [ 10 + "TippingAccountActionExecuted", 11 + "UnknownAccountActionExecuted" 12 + ], 9 13 AccountAvailable: ["AccountManaged", "AccountOwned"], 10 14 AccountFollowOperationValidationOutcome: [ 11 15 "AccountFollowOperationValidationFailed", ··· 34 38 "TransactionWillFail" 35 39 ], 36 40 AddAppSignersResult: [ 37 - "SelfFundedTransactionRequest", 38 - "SponsoredTransactionRequest", 39 - "TransactionWillFail" 40 - ], 41 - AddGroupMembersResult: [ 42 - "AddGroupMembersResponse", 43 - "GroupOperationValidationFailed", 44 41 "SelfFundedTransactionRequest", 45 42 "SponsoredTransactionRequest", 46 43 "TransactionWillFail" ··· 267 264 "NamespaceOperationValidationUnknown" 268 265 ], 269 266 Notification: [ 267 + "AccountActionExecutedNotification", 270 268 "CommentNotification", 271 269 "FollowNotification", 270 + "GroupMembershipRequestApprovedNotification", 271 + "GroupMembershipRequestRejectedNotification", 272 272 "MentionNotification", 273 + "PostActionExecutedNotification", 273 274 "QuoteNotification", 274 275 "ReactionNotification", 275 276 "RepostNotification" ··· 284 285 "SimpleCollectActionContract", 285 286 "TippingPostActionContract", 286 287 "UnknownPostActionContract" 288 + ], 289 + PostActionExecuted: [ 290 + "SimpleCollectPostActionExecuted", 291 + "TippingPostActionExecuted", 292 + "UnknownPostActionExecuted" 287 293 ], 288 294 PostMention: ["AccountMention", "GroupMention"], 289 295 PostMetadata: [
+2 -4
packages/types/hey.d.ts
··· 1 - import type { AmountInput } from "@hey/indexer"; 1 + import type { PayToCollectInput } from "@hey/indexer"; 2 2 3 3 export type CollectActionType = { 4 4 enabled?: boolean; 5 - amount?: AmountInput | null; 6 - recipients?: RecipientDataInput[]; 5 + payToCollect?: PayToCollectInput; 7 6 collectLimit?: null | number; 8 7 followerOnly?: boolean; 9 - referralShare?: number; 10 8 endsAt?: null | string; 11 9 };