One.
A standard makes it so that it easy to build upon. Like lego blocks. if you create another lego block you adhere to the lego standard. With standards everyone can easily read what you have written and understand it without having to adjust their reading to your language that no one knows.
Two
-
balanceOf()
function provides the number of tokens held by a given address. -
transfer()
function transfers a number of tokens directly from the message sender to another address. -
approve()
and -
transferFrom()
a two step process. In the first step a token holder gives another address (usually of a smart contract) approval to transfer up to a certain number of tokens, known as an allowance. The token holder usesapprove()
to provide this information. -
allowance()
function provides the number of tokens allowed to be transferred from a given address by another given address