Skip to main content
Helpful?

ERC6909

Git Source - Generated with forge doc

Inherits: IERC6909Claims

Author: Solmate (https://github.com/transmissions11/solmate/blob/main/src/tokens/ERC6909.sol)

Minimalist and gas efficient standard ERC6909 implementation.

Copied from the commit at 4b47a19038b798b4a33d9749d25e570443520647

This contract has been modified from the implementation at the above link.

State Variables

isOperator

mapping(address owner => mapping(address operator => bool isOperator)) public isOperator;

balanceOf

mapping(address owner => mapping(uint256 id => uint256 balance)) public balanceOf;

allowance

mapping(address owner => mapping(address spender => mapping(uint256 id => uint256 amount))) public allowance;

Functions

transfer

function transfer(address receiver, uint256 id, uint256 amount) public virtual returns (bool);

transferFrom

function transferFrom(address sender, address receiver, uint256 id, uint256 amount) public virtual returns (bool);

approve

function approve(address spender, uint256 id, uint256 amount) public virtual returns (bool);

setOperator

function setOperator(address operator, bool approved) public virtual returns (bool);

supportsInterface

function supportsInterface(bytes4 interfaceId) public view virtual returns (bool);

_mint

function _mint(address receiver, uint256 id, uint256 amount) internal virtual;

_burn

function _burn(address sender, uint256 id, uint256 amount) internal virtual;
Helpful?