Skip to content

Commit

Permalink
Added documentation for mappings within the contract manager
Browse files Browse the repository at this point in the history
  • Loading branch information
reddigszymon committed May 8, 2024
1 parent dcb0429 commit 0f11b9a
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions contracts/ContractManager.sol
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@ contract ContractManager {

// ============= MAPPINGS ============
mapping(address => mapping(uint256 => mapping(string => string)))
private userContracts;
mapping(address => uint256[]) private userContractIds;
mapping(address => mapping(uint256 => string[])) private contractFieldNames;
mapping(address => mapping(uint256 => uint256)) private contractCreationDates;
mapping(address => mapping(uint256 => string)) private contractPartyA;
mapping(address => mapping(uint256 => string)) private contractPartyB;
mapping(address => mapping(uint256 => string)) private contractTypes;
private userContracts; // Allows you to get all contracts for a certain wallet address
mapping(address => uint256[]) private userContractIds; // Allows you to get contract ids associated with a certain wallet address
mapping(address => mapping(uint256 => string[])) private contractFieldNames; // Allows you to get field names associated with a certain contract id
mapping(address => mapping(uint256 => uint256)) private contractCreationDates; // Allows you to get creation dates associated with a certain contract id
mapping(address => mapping(uint256 => string)) private contractPartyA; // Allows you to get party A associated with a certain contract id
mapping(address => mapping(uint256 => string)) private contractPartyB; // Allows you to get party B associated with a certain contract id
mapping(address => mapping(uint256 => string)) private contractTypes; // Allows you to get contract types associated with a certain contract id

// ============= EVENTS ============
event ContractAdded(uint256 contractId, address indexed owner);
Expand Down

0 comments on commit 0f11b9a

Please sign in to comment.