Skip to main content

ITicketBooth

Git Source

Functions

ticketsOf

function ticketsOf(uint256 _projectId) external view returns (ITickets);

projects

function projects() external view returns (IProjects);

lockedBalanceOf

function lockedBalanceOf(address _holder, uint256 _projectId) external view returns (uint256);

lockedBalanceBy

function lockedBalanceBy(address _operator, address _holder, uint256 _projectId) external view returns (uint256);

stakedBalanceOf

function stakedBalanceOf(address _holder, uint256 _projectId) external view returns (uint256);

stakedTotalSupplyOf

function stakedTotalSupplyOf(uint256 _projectId) external view returns (uint256);

totalSupplyOf

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

balanceOf

function balanceOf(address _holder, uint256 _projectId) external view returns (uint256 _result);

issue

function issue(uint256 _projectId, string calldata _name, string calldata _symbol) external;

print

function print(address _holder, uint256 _projectId, uint256 _amount, bool _preferUnstakedTickets) external;

redeem

function redeem(address _holder, uint256 _projectId, uint256 _amount, bool _preferUnstaked) external;

stake

function stake(address _holder, uint256 _projectId, uint256 _amount) external;

unstake

function unstake(address _holder, uint256 _projectId, uint256 _amount) external;

lock

function lock(address _holder, uint256 _projectId, uint256 _amount) external;

unlock

function unlock(address _holder, uint256 _projectId, uint256 _amount) external;

transfer

function transfer(address _holder, uint256 _projectId, uint256 _amount, address _recipient) external;

Events

Issue

event Issue(uint256 indexed projectId, string name, string symbol, address caller);
event Print(
address indexed holder,
uint256 indexed projectId,
uint256 amount,
bool convertedTickets,
bool preferUnstakedTickets,
address controller
);

Redeem

event Redeem(
address indexed holder,
uint256 indexed projectId,
uint256 amount,
uint256 stakedTickets,
bool preferUnstaked,
address controller
);

Stake

event Stake(address indexed holder, uint256 indexed projectId, uint256 amount, address caller);

Unstake

event Unstake(address indexed holder, uint256 indexed projectId, uint256 amount, address caller);

Lock

event Lock(address indexed holder, uint256 indexed projectId, uint256 amount, address caller);

Unlock

event Unlock(address indexed holder, uint256 indexed projectId, uint256 amount, address caller);

Transfer

event Transfer(
address indexed holder, uint256 indexed projectId, address indexed recipient, uint256 amount, address caller
);