Storage
Author: Cujo
Stores System-level Carbonmark state.
Structs
CreditListing
Stores the detailed data for currently valid listings within this struct
struct CreditListing {
address account;
address token;
uint256 tokenId;
uint256 originalAmount;
uint256 remainingAmount;
uint256 unitPrice;
uint256 minFillAmount;
uint256 deadline;
TokenType tokenType;
}
Properties
| Name | Type | Description |
|---|---|---|
account | address | The ethereum account that owns this listing |
token | address | The ethereum address of the token listed |
tokenId | uint256 | |
originalAmount | uint256 | |
remainingAmount | uint256 | The remaining unfilled amount on this listing |
unitPrice | uint256 | The unit price in USDC, expected to be six decimals |
minFillAmount | uint256 | The minimum amount needed to fill any part of this listing |
deadline | uint256 | The last UNIX timestamp for which this listing is valid |
tokenType | TokenType |
Enums
CreditProtocol
Enum providing values to check against when a new token is being listed
enum CreditProtocol {
UNKNOWN,
TOUCAN,
C3,
ICR,
CMARK
}
TokenType
enum TokenType {
UNKNOWN,
ERC20,
ERC1155
}