Skip to main content

IJBTokens

Git Source

Functions

creditBalanceOf

function creditBalanceOf(address holder, uint256 projectId) external view returns (uint256);

projectIdOf

function projectIdOf(IJBToken token) external view returns (uint256);

tokenOf

function tokenOf(uint256 projectId) external view returns (IJBToken);

totalCreditSupplyOf

function totalCreditSupplyOf(uint256 projectId) external view returns (uint256);

totalBalanceOf

function totalBalanceOf(address holder, uint256 projectId) external view returns (uint256 result);

totalSupplyOf

function totalSupplyOf(uint256 projectId) external view returns (uint256);

burnFrom

function burnFrom(address holder, uint256 projectId, uint256 count) external;

claimTokensFor

function claimTokensFor(address holder, uint256 projectId, uint256 count, address beneficiary) external;

deployERC20For

function deployERC20For(
uint256 projectId,
string calldata name,
string calldata symbol,
bytes32 salt
)
external
returns (IJBToken token);

mintFor

function mintFor(address holder, uint256 projectId, uint256 count) external;

setTokenFor

function setTokenFor(uint256 projectId, IJBToken token) external;

transferCreditsFrom

function transferCreditsFrom(address holder, uint256 projectId, address recipient, uint256 count) external;

Events

DeployERC20

event DeployERC20(
uint256 indexed projectId, IJBToken indexed token, string name, string symbol, bytes32 salt, address caller
);

Burn

event Burn(
address indexed holder,
uint256 indexed projectId,
uint256 count,
uint256 creditBalance,
uint256 tokenBalance,
address caller
);

ClaimTokens

event ClaimTokens(
address indexed holder,
uint256 indexed projectId,
uint256 creditBalance,
uint256 count,
address beneficiary,
address caller
);

Mint

event Mint(address indexed holder, uint256 indexed projectId, uint256 count, bool shouldClaimTokens, address caller);

SetToken

event SetToken(uint256 indexed projectId, IJBToken indexed token, address caller);

TransferCredits

event TransferCredits(
address indexed holder, uint256 indexed projectId, address indexed recipient, uint256 count, address caller
);