Skip to content

Paynext/smart-contracts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Paynext Smart Contracts

Paynext (PET) is a cryptocurrency that built on the Ethereum blockchain platform with ERC20 standard. The purpose of Paynext is to pay e-commerce transactions on Amazon, eBay, Alibaba... For more information, visit the website and read the Whitepaper.

The ERC20 Standards

Ethereum is a blockchain platform with a special technology that is smart contract. Thanks to this superiority, cryptocurrencies are easily set up based on the ERC20 standard with 4 key features: no censorship, no fraud, no downtime and no intervention of third parties. ERC20 is a standard interface of a token. ERC20 standard allows different platforms to be easily interchanged, converted and secured. Being based on the same standard, the ERC20 gives users the ability to control assets anytime, anywhere. Therefore, you can rest assured that Paynext is built entirely on the basis of ERC20 standard.

Smart contract

Methods

Our main functions

transfer

function transfer(address _to, uint256 _value) public returns (bool)

transfer token for a specified address


transferFrom

function transferFrom(address _from, address _to, uint256 _value) public returns (bool)

Transfer tokens from one address to another


approve

function approve(address _spender, uint256 _value) public returns (bool)

Approve the passed address to spend the specified amount of tokens on behalf of msg.sender.


allowance

function allowance(address _owner, address _spender) public view returns (uint256)

Function to check the amount of tokens that an owner allowed to a spender.


increaseApproval

function increaseApproval(address _spender, uint _addedValue) public returns (bool)

Increase the amount of tokens that an owner allowed to a spender.


decreaseApproval

function decreaseApproval(address _spender, uint _subtractedValue) public returns (bool)

Decrease the amount of tokens that an owner allowed to a spender.


Events

Transfer

event Transfer(address indexed from, address indexed to, uint256 value)

Triggered when a transfer is executed.


Approval

event Approval(address indexed owner, address indexed spender, uint256 value)

Triggered when allowance is changed.


Motivation

Those will allow dapps and wallets to buy and sell the token.

The most important here is transfer.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published