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: 0x88465c0a24a2e3ac55b7176beb07b3d56ec5cde1
Ethereum rinkeby: 0x349384f3ccc2045443b94b20d0af71edaf7fea36
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;
}
_projectsis anIJBProjectscontract which mints ERC-721's that represent project ownership and transfers._directoryis anIJBDirectorycontract storing directories of terminals and controllers for each project._ticketBoothis anITicketBoothcontract 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 
  |