Class: Donation

stayge-wallet/donation~ Donation

Class representing the Donation smart contract


new Donation(wallet, scoreAddress)

Create a Donation

Parameters:
Name Type Description
wallet Wallet
scoreAddress String

contract address of Donation

Source:

Methods


<async> name()

Returns name

Source:
Returns:
Type
Promise.<String>

<async> refund(ACT, to, value, data)

Refund donation amount

Parameters:
Name Type Description
ACT String

contract address for community

to String

address of the recipient

value Number

the amount to refund

data String

optional

Source:
Returns:

txHash

Type
Promise.<String>

<async> totalArtists()

Returns total number of artists

Source:
Returns:
Type
Promise.<Number>

<async> totalDonationAmt()

Returns total doantion amount

Source:
Returns:
Type
Promise.<Number>

<async> totalUsers()

Returns total number of users

Source:
Returns:
Type
Promise.<Number>