anudit / anuditcoin

Smart Contract for Anudit Coin (ANC)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Anudit Coin

Etherscan Link

Binance

Implementation of a BaseERC20Token

ERC20Token

mintingFinished - view

No parameters Return : if minting is finished or not.

name - view

No parameters Returns the name of the token.

approve - read

name type description
spender address
value uint256
See IERC20.approve.
  * Requirements:
  * - `spender` cannot be the zero address.

totalSupply - view

No parameters See IERC20.totalSupply.

transferFrom - read

name type description
from address address The address which you want to send tokens from
to address address The address which you want to transfer to
value uint256 uint256 the amount of tokens to be transferred
Transfer tokens from one address to another.
Return : A boolean that indicates if the operation was successful.

renounceOperator - read

No parameters

removeMinter - read

name type description
account address Address you want to remove role
remove the minter role from address

decimals - view

No parameters Returns the number of decimals used to get its user representation. For example, if decimals equals 2, a balance of 505 tokens should be displayed to a user as 5,05 (505 / 10 ** 2). * Tokens usually opt for a value of 18, imitating the relationship between Ether and Wei. * > Note that this information is only used for display purposes: it in no way affects any of the arithmetic of the contract, including IERC20.balanceOf and IERC20.transfer.

cap - view

No parameters Returns the cap on the token's total supply.

increaseAllowance - read

name type description
spender address
addedValue uint256
Atomically increases the allowance granted to spender by the caller.
  * This is an alternative to `approve` that can be used as a mitigation for

problems described in IERC20.approve. * Emits an Approval event indicating the updated allowance. * Requirements: * - spender cannot be the zero address.

mint - read

name type description
to address The address that will receive the minted tokens.
value uint256 The amount of tokens to mint.
Function to mint tokens
Return : A boolean that indicates if the operation was successful.

burn - read

name type description
amount uint256
Destoys amount tokens from the caller.
  * See `ERC20._burn`.

transferEnabled - view

No parameters Return : if transfer is enabled or not.

isOperator - view

name type description
account address

balanceOf - view

name type description
account address
See IERC20.balanceOf.

renounceOwnership - read

No parameters Leaves the contract without owner. It will not be possible to call onlyOwner functions anymore. Can only be called by the current owner. * > Note: Renouncing ownership will leave the contract without an owner, thereby removing any functionality that is only available to the owner.

burnFrom - read

name type description
account address
amount uint256
See ERC20._burnFrom.

finishMinting - read

No parameters Function to stop minting new tokens and enable transfer.

recoverERC20 - read

name type description
tokenAddress address The token contract address
tokenAmount uint256 Number of tokens to be sent
Remember that only owner can call so be careful when use on contracts generated from other contracts.

owner - view

No parameters Returns the address of the current owner.

isOwner - view

No parameters Returns true if the caller is the current owner.

symbol - view

No parameters Returns the symbol of the token, usually a shorter version of the name.

addMinter - read

name type description
account address

renounceMinter - read

No parameters

addOperator - read

name type description
account address

decreaseAllowance - read

name type description
spender address
subtractedValue uint256
Atomically decreases the allowance granted to spender by the caller.
  * This is an alternative to `approve` that can be used as a mitigation for

problems described in IERC20.approve. * Emits an Approval event indicating the updated allowance. * Requirements: * - spender cannot be the zero address.

  • spender must have allowance for the caller of at least subtractedValue.

transfer - read

name type description
to address The address to transfer to.
value uint256 The amount to be transferred.
Transfer token to a specified address
Return : A boolean that indicates if the operation was successful.

isMinter - view

name type description
account address

removeOperator - read

name type description
account address Address you want to remove role
remove the operator role from address

builtOn - view

No parameters

allowance - view

name type description
owner address
spender address
See IERC20.allowance.

enableTransfer - read

No parameters Function to enable transfers.

transferOwnership - read

name type description
newOwner address
Transfers ownership of the contract to a new account (newOwner).
Can only be called by the current owner.

constructor - read

name type description
name string
symbol string
decimals uint8
cap uint256
initialSupply uint256
function Object() { [native code] }

MintFinished - read

No parameters

TransferEnabled - read

No parameters

OwnershipTransferred - read

name type description
previousOwner address
newOwner address

OperatorAdded - read

name type description
account address

OperatorRemoved - read

name type description
account address

MinterAdded - read

name type description
account address

MinterRemoved - read

name type description
account address

Transfer - read

name type description
from address
to address
value uint256
Function to enable transfers.

Approval - read

name type description
owner address
spender address
value uint256

About

Smart Contract for Anudit Coin (ANC)