AppStorage
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
| Name | Type | Description |
|---|---|---|
reentrantStatus | uint256 | An intra-transaction state variable to protect against reentrance. |
tokenCreditProtocol | mapping(address => Storage.CreditProtocol) | Mapping of a credit token address to the credit protocol that issued it |
creditListings | mapping(bytes32 => Storage.CreditListing) | Mapping of a listing ID to the CreditListing struct that holds the details of this listing |
a | mapping(address => Account.State) | Mapping to the account level state. |