Accessing Data in the Concrete Protocol
Introduction
This document explains how to retrieve information from the Concrete Protocol using pointers. It categorizes various types of data available in the system and outlines the corresponding pointers needed to access this data.
Pointers Categories
Portfolio Data
To access portfolio data, the following pointers are utilized:
Portfolio.To.Id
User to portfolio mapping
Portfolio.Id.Index.LoanId
Portfolio ID & Index to loanID mapping
Portfolio.Id.Index.User
Portfolio ID & Index to User mapping
Portfolio.Id.To
Portfolio Id to user mapping
Portfolio.Url.Base
Portfolio.Loans.Id
Loan Data
To access loan data, the following pointers are utilized:
Loan.User.Index.Id
User & Index to loan ID
Loan.User.Id.LoanBorrowData
User & loanId to loan borrow data
Loan.User.Id.LoanUpdate
User & loanId to loan update
Loan.User.Id.LoanFinancialTerms
User & loanId to loan financial terms
Loan.User.Id.LoanSupplyData
User & loanId to loan supply data
Protection
To access protection data, the following pointers are utilized:
Protection.User.Id.ProtectionUpdates
User & loanId to protection update data
Protection.User.Id.Protection
User & loanId to protection data
Protection.User.Id.Claim
User & protection Id to claim data
Protection.User.Id.ProtectionFinancialTerms
User & loanId to protection protection financial terms
Protection.User.Id
User & loanId to protection id
Managers
To access managerial data, the following pointers are utilized:
ActionManager.Name.Actions
Action name to active action
BlueprintManager.Name.Blueprints
Blueprint name to active blueprint
ModuleManager.Name.Modules
Module name to active module
GuardManager.Name.Guards
Guard name to active guards
Address.Manager.AccessControl
Returns the current access control contract address
Address.Manager.Module
Returns the current module manager contract address
Address.Manager.Blueprint
Returns the current blueprint manager contract address
Address.Manager.Action
Returns the current action manager contract address
Addresses
To access addresses, the following pointers are utilized:
Address.Lender.Market
Returns a lender market address based on the active lender names inside the registry
Address.User.LenderName.Blueprint
Returns the user's lender blueprint. Note this is the only address that you need to pass a key value to which will be User & LenderName to Blueprint address
Address.Token.Chain.PriceFeed
Returns the price feed address based on the token and the chain
Address.Contracts.Portfolio
Returns the portfolio contract address
Miscellaneous Data
For other types of data, the following pointers are used:
Counter.Loan.Id
Returns the current count of the loan id's
Counter.Claim.Id
Returns the current count of the claim id's
Counter.Protection.Id
Returns the current count of the protection id's
Counter.Portfolio.Id
Returns the current count of the portfolio id's
Token.LenderName.Collateral.Approved
Returns if a specific lender collateral token has been whitelisted or not. LenderName & Collateral to Approved
Last updated