-
Notifications
You must be signed in to change notification settings - Fork 16
Smart Contracts
The following document describes the smart contracts the Front-End interacts with and how those interactions work.
Note (Sept, 2018): At this point in time it is only documenting the methods and properties that are used by the Front-End
The smart contract for the POLY token. It implements the ERC20 interface along with other methods.
ERC20
Gets the amount of tokens owner
is allowing spender
to spend on their behalf. See approve()
(owner: Address, spender: Address) => allowance: Number
ERC20
Gets the amount of tokens owner
has in their account
(owner: Address) => balance: Number
ERC20
Transfers amount
of tokens from the address who called the method to to
(to: Address, amount: Number) => Success: boolean
ERC20
Sets the amount
of tokens the message sender allows spender
to spend on their behalf
(spender: Address, amount: Number) => Success: boolean
When transfer() or transferFrom() are executed
Values:
from:Address
to:Address
When an owner
sets an allowance
for a spender
Values:
owner:Address
spender:Address
-
value:Number
: Amount of tokens allowed
- increaseApproval
- decreaseApproval