{"repo":"vittominacori/erc1363-payable-token","free":true,"listed":false,"github":"https://github.com/vittominacori/erc1363-payable-token","clone":"git clone https://github.com/vittominacori/erc1363-payable-token.git","description":"Reference implementation for the ERC-1363 Payable Token Standard","language":"JavaScript","stars":137,"topics":["solidity","smart-contracts","token","erc20","erc1363","ethereum","eip"],"license":"MIT","category":"blockchain-web3","readme_excerpt":"ERC-1363 Payable Token --- ERC-1363 is an extension interface for ERC-20 tokens that supports executing code on a recipient contract after transfer or transferFrom , or code on a spender contract after approve , in a single transaction. There is no way to execute code on a receiver/spender contract after ERC-20 transfers or approvals so, to perform an action, it is required to send another transaction. This introduces complexity in UI development and friction on adoption as users must wait for the first transaction to be executed and then submit the second one. They must also pay GAS twice. ERC-1363 makes tokens capable of performing actions more easily and working without the use of any off-chain listener. It allows to make a callback on receiver/spender contracts, after transfers or approvals, in a single transaction. The following are functions and callbacks introduced by ERC-1363: transferAndCall and transferFromAndCall will call an onTransferReceived on a ERC1363Receiver contract. approveAndCall will call an onApprovalReceived on a ERC1363Spender contract. ERC-1363 tokens can be used for specific utilities in all cases that require a callback to be executed after a transfer or an approval received. ERC-1363 is also useful for avoiding token loss or token locking in contracts by verifying the recipient contract's ability to handle tokens. [!IMPORTANT] This repo contains the reference implementation of the official ERC-1363. Installation Hardhat Foundry Add the below in re","default_branch":null,"files":null,"tree":[],"storefront":"/r/vittominacori","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/vittominacori/erc1363-payable-token/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}