Last active
March 27, 2023 04:35
-
-
Save FoxyDev42/5f23cd03eab33e0d73f6f6227912451e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "version": "0.1.0", | |
| "name": "citrus", | |
| "instructions": [], | |
| "accounts": [ | |
| { | |
| "name": "loan", | |
| "type": { | |
| "kind": "struct", | |
| "fields": [ | |
| { | |
| "name": "bump", | |
| "type": "u8" | |
| }, | |
| { | |
| "name": "lender", | |
| "type": "publicKey" | |
| }, | |
| { | |
| "name": "borrower", | |
| "type": "publicKey" | |
| }, | |
| { | |
| "name": "mint", | |
| "type": "publicKey" | |
| }, | |
| { | |
| "name": "collectionConfig", | |
| "type": "publicKey" | |
| }, | |
| { | |
| "name": "status", | |
| "type": { | |
| "defined": "LoanStatus" | |
| } | |
| }, | |
| { | |
| "name": "loanTerms", | |
| "type": { | |
| "defined": "LoanTerms" | |
| } | |
| }, | |
| { | |
| "name": "creationTime", | |
| "type": "i64" | |
| }, | |
| { | |
| "name": "startTime", | |
| "type": "i64" | |
| }, | |
| { | |
| "name": "endTime", | |
| "type": "i64" | |
| }, | |
| { | |
| "name": "fox", | |
| "type": "bool" | |
| }, | |
| { | |
| "name": "mortgage", | |
| "type": "bool" | |
| }, | |
| { | |
| "name": "private", | |
| "type": "bool" | |
| }, | |
| { | |
| "name": "offerType", | |
| "type": { | |
| "defined": "OfferType" | |
| } | |
| } | |
| ] | |
| } | |
| } | |
| ], | |
| "types": [ | |
| { | |
| "name": "LoanTerms", | |
| "type": { | |
| "kind": "struct", | |
| "fields": [ | |
| { | |
| "name": "apyBps", | |
| "type": "u64" | |
| }, | |
| { | |
| "name": "duration", | |
| "type": "u64" | |
| }, | |
| { | |
| "name": "principal", | |
| "type": "u64" | |
| } | |
| ] | |
| } | |
| }, | |
| { | |
| "name": "LoanStatus", | |
| "type": { | |
| "kind": "enum", | |
| "variants": [ | |
| { | |
| "name": "WaitingForBorrower" | |
| }, | |
| { | |
| "name": "WaitingForLender" | |
| }, | |
| { | |
| "name": "Active" | |
| }, | |
| { | |
| "name": "Repaid" | |
| }, | |
| { | |
| "name": "Defaulted" | |
| } | |
| ] | |
| } | |
| }, | |
| { | |
| "name": "OfferType", | |
| "type": { | |
| "kind": "enum", | |
| "variants": [ | |
| { | |
| "name": "Global" | |
| }, | |
| { | |
| "name": "Mortgage" | |
| }, | |
| { | |
| "name": "Borrow" | |
| } | |
| ] | |
| } | |
| } | |
| ], | |
| "events": [], | |
| "errors": [] | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment