-
-
Save isaac-martin/5d630b206b8e823f9b4d9823a2da41f7 to your computer and use it in GitHub Desktop.
paywallConfig
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 characters
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, | |
}; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.