Country Club Membership

TOOLSFINANCIALUTILITY

Exposed Methods

setPrice owner sets the price for the memberships

parameter nametypedetails
_goldcostuintcost of a gold membership
_silvercostuintcost of a silver membership
_standardcostuintcost of a standard membership

getMembership function for a person to buy a membership

parameter nametypedetails
_namestringname of the member
_membershipstringmembership chosen

checkMembership checks if a membership is due

parameter nametypedetails
_namestringname of the member

renewMembership enables the member to rewnew his membership

withdraw withdraw function for the owner of the contract

Events

PriceSet listens when the price was set

NewMembership listen when a membership was purchased

Renewal listens when a member renews his membership

Buy
Reviewed by Modex
Buy Contract Test Contract

Create an account or login to purchase this smart contract