JBTokenStore
Manage token minting, burning, and account balances.
Code
https://github.com/jbx-protocol/juice-contracts-v3/blob/main/contracts/JBTokenStore.sol
Addresses
Ethereum mainnet: 0x6FA996581D7edaABE62C15eaE19fEeD4F1DdDfE7
Goerli testnet: 0x1246a50e3aDaF684Ac566f0c40816fF738F309B3
Interfaces
Name | Description |
---|---|
IJBTokenStore | General interface for the methods in this contract that interact with the blockchain's state according to the protocol's rules. |
Inheritance
Contract | Description |
---|---|
JBControllerUtility | Includes convenience functionality for checking if the message sender is the current controller of the project whose data is being manipulated. |
JBOperatable | Includes convenience functionality for checking a message sender's permissions before executing certain transactions. |
Constructor
/**
@param _operatorStore A contract storing operator assignments.
@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 _fundingCycleStore A contract storing all funding cycle configurations.
*/
constructor(
IJBOperatorStore _operatorStore,
IJBProjects _projects,
IJBDirectory _directory,
IJBFundingCycleStore _fundingCycleStore
) JBOperatable(_operatorStore) JBControllerUtility(_directory) {
projects = _projects;
fundingCycleStore = _fundingCycleStore;
}
_operatorStore
is anIJBOperatorStore
contract storing operator assignments._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._fundingCycleStore
is anIJBFundingCycleStore
contract storing all funding cycle configurations.
Events
Name | Data |
---|---|
Issue |
|
Mint |
|
Burn |
|
Claim |
|
Set |
|
Transfer |
|
Properties
Function | Definition |
---|---|
projects | Traits
Returns |
fundingCycleStore | Traits
Returns |
tokenOf | Params
Returns |
projectOf | Params
Returns
|
unclaimedBalanceOf | Params
Returns
|
unclaimedTotalSupplyOf | Params
Returns
|
Read
Function | Definition |
---|---|
totalSupplyOf | Params
Returns
|
balanceOf | Params
Returns
|
Write
Function | Definition |
---|---|
issueFor | Traits Params
Returns
|
setFor | Traits Params
|
mintFor | Traits Params
|
burnFrom | Traits Params
|
claimFor | Traits Params
|
transferFrom | Traits Params
|