AppStorage

Git Source

Author: Cujo

Defines the state object for Carbonmark

struct AppStorage {
    uint256 reentrantStatus;
    mapping(address => Storage.CreditProtocol) tokenCreditProtocol;
    mapping(bytes32 => Storage.CreditListing) creditListings;
    mapping(address => Account.State) a;
}

Properties

NameTypeDescription
reentrantStatusuint256An intra-transaction state variable to protect against reentrance.
tokenCreditProtocolmapping(address => Storage.CreditProtocol)Mapping of a credit token address to the credit protocol that issued it
creditListingsmapping(bytes32 => Storage.CreditListing)Mapping of a listing ID to the CreditListing struct that holds the details of this listing
amapping(address => Account.State)Mapping to the account level state.