ArtistBooking

FINANCIALUTILITYTOOLS

Exposed Methods

setCommission sets the commission the manages for the hires

parameter nametypedetails
_commissionuintstores the commission of the manager

addArtist adds an artist to the array

parameter nametypedetails
_addraddressethereum address of the artist
_artistnamestringname of the artist
_priceuintprice of the artist

fireArtist makes an artist unavailable

parameter nametypedetails
_artistnamestringname of the artist

hireArtist a normal user can hire an artist

parameter nametypedetails
_artistnamestringname of the artist

attendConcert function called by the artist when it attended a concert

parameter nametypedetails
_artistnamestringname of the artist

cancelConcert function called by the artist when they failed to attend a concert

parameter nametypedetails
_artistnamestringname of the artist

getArtist shows information about an artist;

parameter nametypedetails
_indexuintstores the position of the artist in the array

withdraw withdraw function for the owner

Events

ConcertAttended tracks when a concert was attended by an artist and at what time

ConcerCancelled tracks when a concert was canceled by an artist and at what time

Buy
Reviewed by Modex
Buy Contract Test Contract

Create an account or login to purchase this smart contract