JBV1TokenPaymentTerminal
Allows project owners to specify the v1 project token that they are willing to accept from holders in exchange for their v2 project token.
Code
Addresses
Ethereum mainnet: ``
Ethereum rinkeby: ``
Interfaces
Contract | Description |
---|---|
IJBV1TokenPaymentTerminal | General interface for the methods in this contract that interact with the blockchain's state according to the protocol's rules. |
IJBPaymentTerminal | A standard for a contract where project can receive payments through. |
Inheritance
Contract | Description |
---|---|
ERC165 | Introspection on interface adherance. |
Constructor
/**
@param _projects A contract which mints ERC-721's that represent project ownership and transfers.
@param _directory A contract storing directories of terminals and controllers for each project.
@param _ticketBooth The V1 contract where tokens are stored.
*/
constructor(
IJBProjects _projects,
IJBDirectory _directory,
ITicketBooth _ticketBooth
) {
projects = _projects;
directory = _directory;
ticketBooth = _ticketBooth;
}
_projects
is anIJBProjects
contract which mints ERC-721's that represent project ownership and transfers._directory
is anIJBDirectory
contract storing directories of terminals and controllers for each project._ticketBooth
is anITicketBooth
contract that stores project tokens in the v1 Juicebox protocol.
Events
Name | Data |
---|---|
Pay |
|
SetV1ProjectId |
|
ReleaseV1Tokens |
|
Modifiers
Function | Definition |
---|---|
isTerminalOf | Params
|
Properties
Function | Definition |
---|---|
projects | Traits
Returns |
directory | Traits
Returns |
ticketBooth | Traits
Returns |
v1ProjectIdOf | Params
Returns
|
finalized | Params
Returns
|
Read
Function | Definition |
---|---|
acceptsToken | Params
Returns
|
decimalsForToken | Params
Returns
|
currencyForToken | Params
Returns
|
currentEthOverflowOf | Params
Returns
|
supportsInterface | Params
Returns
|
Write
Function | Definition |
---|---|
pay | Traits
Params
Returns
|
addToBalanceOf | Traits
Params
|
setV1ProjectIdOf | Params
|
releaseV1TokensOf | Params
|