-
-
Save isaac-martin/5d630b206b8e823f9b4d9823a2da41f7 to your computer and use it in GitHub Desktop.
Revisions
-
isaac-martin created this gist
Mar 14, 2024 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,28 @@ export const buildPaywallConfig = ( address: string, memberLevel: MembershipLevel, metaData: Array<Record<any, any>> | null, endingCallToAction = "Go to profile" ) => { const lockAddress = contractAddresses[memberLevel]; return { icon: "https://www.bestdishever.nyc/bde-logomark.png", locks: { [lockAddress]: { network: 43114, skipRecipient: true, }, }, title: `Best Dish Ever ${memberLevel.charAt(0).toUpperCase() + memberLevel.slice(1)} Membership`, referrer: "", skipSelect: true, hideSoldOut: false, pessimistic: true, messageToSign: "", skipRecipient: true, endingCallToAction, expectedAddress: address, persistentCheckout: false, metadataInputs: metaData && metaData, }; };