Account

Git Source

Author: Cujo

Stores User-level Carbonmark state.

Structs

State

Stores the account level state for a user of Carbonmark

struct State {
    uint256 totalListings;
    mapping(address token => mapping(uint256 tokenId => uint256 listingTotal)) listingTotalByCredit;
}

Properties

NameTypeDescription
totalListingsuint256
listingTotalByCreditmapping(address token => mapping(uint256 tokenId => uint256 listingTotal))The current sum total of all listings for a specified total. ERC20 tokens have a dummy ID of 0. ERC1155 tokens have a real ID.