Class: ACT

stayge-wallet/act~ ACT

Class representing the ACT smart contract


new ACT(wallet, scoreAddress)

Create a ACT

Parameters:
Name Type Description
wallet Wallet
scoreAddress String

contract address of ACT

Source:

Methods


<async> addFeeWhitelist(address, proportion)

add to whitelist for fee sharing

Parameters:
Name Type Description
address String
proportion Number
Source:
Returns:

txHash

Type
Promise.<String>

<async> allowance(owner, spender)

Returns allowance of the spender for the owner balance

Parameters:
Name Type Description
owner String

address of the owner

spender String

address of the spender

Source:
Returns:
Type
Promise.<Number>

<async> approve(spender, value)

Approve spender to transfer the specified ACT from the owner's balance

Parameters:
Name Type Description
spender String

address of the spender

value Number

ACT amount to approve

Source:
Returns:

txHash

Type
Promise.<String>

<async> balanceOf(owner)

Returns balance of ACT for the specified owner

Parameters:
Name Type Description
owner String

address of owner

Source:
Returns:
Type
Promise.<Number>

<async> burn(amount)

Burn tokens

Parameters:
Name Type Description
amount Number

amount to burn

Source:
Returns:

txHash

Type
Promise.<String>

<async> decAllowance(spender, value)

Decrease allowance of the spender for the owner's balance

Parameters:
Name Type Description
spender String

address of the spender

value Number

ACT amount to decrease

Source:
Returns:

txHash

Type
Promise.<String>

<async> decimals()

Returns decimals

Source:
Returns:
Type
Promise.<Number>

<async> getProportion(address)

Returns fee sharing proportion of the address

Parameters:
Name Type Description
address String
Source:
Returns:
Type
Promise.<Number>

<async> incAllowance(spender, value)

Increase allowance of the spender for the owner's balance

Parameters:
Name Type Description
spender String

address of the spender

value Number

ACT amount to increase

Source:
Returns:

txHash

Type
Promise.<String>

<async> mint(to, amount)

Mint tokens and allocate to the specified recipient

Parameters:
Name Type Description
to String

address of the recipient

amount Number

amount to mint

Source:
Returns:

txHash

Type
Promise.<String>

<async> name()

Returns name

Source:
Returns:
Type
Promise.<String>

<async> pause()

Pause contract to disable it's functionalities

Source:
Returns:

txHash

Type
Promise.<String>

<async> paused()

Returns whether the contract is paused or not

Source:
Returns:

true: paused, false: unpaused

Type
Promise.<Bool>

<async> setBlacklist(account, flag)

set/unset blacklist

Parameters:
Name Type Description
account String

address to be set/unset as blacklist

flag Bool

true:set, false:unset

Source:
Returns:

txHash

Type
Promise.<String>

<async> setWhitelist(account, flag)

set/unset whitelist

Parameters:
Name Type Description
account String

address to be set/unset as whitelist

flag Bool

true:set, false:unset

Source:
Returns:

txHash

Type
Promise.<String>

<async> symbol()

Returns symbol

Source:
Returns:
Type
Promise.<String>

<async> totalSupply()

Returns total supply

Source:
Returns:
Type
Promise.<Number>

<async> transfer(to, value, data)

Transfer ACT to the specified recipient

Parameters:
Name Type Description
to String

address of the recipient

value Number

the amount to transfer

data String

optional

Source:
Returns:

txHash

Type
Promise.<String>

<async> transferFrom(from, to, value)

Tranfer ACT from sender to recipient
Only the amount of allowance from sender can be tranferred

Parameters:
Name Type Description
from String

address of the sender

to String

address of the recipient

value Number

ACT amount to transfer

Source:
Returns:

txHash

Type
Promise.<String>

<async> unpause()

Unpause contract to enable it's functionalities

Source:
Returns:

txHash

Type
Promise.<String>