Country Club Membership

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


PriceSet listens when the price was set

NewMembership listen when a membership was purchased

Renewal listens when a member renews his membership

Reviewed by Modex
Buy Contract Test Contract

Create an account or login to purchase this smart contract