Practical overview
When it fits
Use it when developing Solidity contracts that need token transfers or approvals to trigger a recipient or spender contract callback in the same transaction.
Who it is for
- Smart-contract developers implementing ERC-1363 token behavior
- Developers building recipient or spender contracts that respond to token transfers or approvals
Documented uses
- Use reference code when implementing an ERC-1363-compatible token contract.
- Add same-transaction callbacks after transfers, delegated transfers, or approvals.
- Implement receiver and spender callback interfaces for contracts that interact with ERC-1363 tokens.
Requirements & limits
- The README documents Hardhat installation with npm and Foundry installation with OpenZeppelin contracts plus remappings.
- The usage example specifies Solidity pragma
^0.8.20. - Callback methods revert when the target is an EOA; use ERC-20 transfer, transferFrom, or approve methods for EOAs.
- The repository documents interfaces for the token, receiver, and spender, plus an ERC-1363 utility library.
Check current requirements in the official documentation. Source-based guidance does not mean OpenViST has run or independently tested this project.
Install and map the library with Foundry
Fetch the listed OpenZeppelin dependency and ERC-1363 repository, then add the documented import remappings.
Before you start
- A Foundry project
Steps
Run
forge install OpenZeppelin/openzeppelin-contracts.Run
forge install vittominacori/erc1363-payable-token.Add
@openzeppelin/contracts/=lib/openzeppelin-contracts/contracts/anderc-payable-token/contracts/=lib/erc1363-payable-token/contracts/toremappings.txt.
Expected outcome
The dependencies and import remappings are set up as shown in the README.
Sources & review
Source record details
- Source availability
- Active
- Sources checked
- 9 October 2026
- Original website title
- vittominacori/erc1363-payable-token · Official homepage title · retained in its source language

