Component

Implementation of the Kuwa faucet, this is the landing page from which the valid kuwa IDs table component is rendered

Component
Author: The Kuwa Foundation / Hrishikesh Kashyap

Component

Implementation of the valid registrations table in the Kuwa Faucet page

Component
Author: The Kuwa Foundation / Hrishikesh Kashyap

CONFIG

Implementation of the faucet script which can be run to trigger payments to all valid Kuwa IDs

CONFIG
Author: The Kuwa Foundation / Hrishikesh Kashyap

transferKuwaCoin

Transfers 1 KuwaCoin to the specified destination wallet address

transferKuwaCoin(destAddress: String): Promise
Parameters
destAddress (String)
Returns
Promise:

Formatter function for the contract address column (not displayed on the Faucet page)

blockLinks(cell: Int, row: Int): String
Parameters
cell (Int)
row (Int)
Returns
String: Contract address link of the kuwa ID in the row

getValidRegistrations

Fetches all the valid Kuwa IDs and starts the payment process for each of them

getValidRegistrations(): void
Returns
void:

statusFormatter

Formatter function for the payment status column

statusFormatter(cell: Int, row: Int): String
Parameters
cell (Int)
row (Int)
Returns
String: Payment status for the kuwa ID in the row

amountFormatter

Formatter function for the amount column

amountFormatter(cell: Int, row: Int): String
Parameters
cell (Int)
row (Int)
Returns
String: Amount to be paid to the kuwa ID in the row

onPayBtnClick

Function called on clicking the pay button, will loop through the valid kuwa IDs and make payments

onPayBtnClick()