Class: TodaysIdol

stayge-wallet/todaysidol~ TodaysIdol

Class representing the Today's Idol smart contract


new TodaysIdol(wallet, scoreAddress)

Create a TodaysIdol

Parameters:
Name Type Description
wallet Wallet
scoreAddress String

contract address of TodaysIdol

Source:

Methods


<async> comments()

Returns comments

Source:
Returns:
Type
Promise.<Object>

<async> name()

Returns name

Source:
Returns:
Type
Promise.<String>

<async> totalComments()

Returns total count of the comments

Source:
Returns:
Type
Promise.<Number>

<async> writeComment(user, artist, comment)

Write a comment

Parameters:
Name Type Description
user String
artist String
comment String
Source:
Returns:

txHash

Type
Promise.<String>