@river-build/sdk
Version:
For more details, visit the following resources:
27 lines • 984 B
JavaScript
import { ETH_ADDRESS, EncodedNoopRuleData, Permission, getDynamicPricingModule, getFixedPricingModule, } from '@river-build/web3';
export async function makeDefaultMembershipInfo(spaceDapp, feeRecipient, pricing = 'dynamic') {
const pricingModule = pricing == 'dynamic'
? await getDynamicPricingModule(spaceDapp)
: await getFixedPricingModule(spaceDapp);
return {
settings: {
name: 'Everyone',
symbol: 'MEMBER',
price: 0,
maxSupply: 1000,
duration: 0,
currency: ETH_ADDRESS,
feeRecipient: feeRecipient,
freeAllocation: 1000,
pricingModule: pricingModule.module,
},
permissions: [Permission.Read, Permission.Write],
requirements: {
everyone: true,
users: [],
syncEntitlements: false,
ruleData: EncodedNoopRuleData,
},
};
}
//# sourceMappingURL=spaceUtils.js.map