Skip to content

Instantly share code, notes, and snippets.

@FoxyDev42
Last active March 27, 2023 04:35
Show Gist options
  • Select an option

  • Save FoxyDev42/5f23cd03eab33e0d73f6f6227912451e to your computer and use it in GitHub Desktop.

Select an option

Save FoxyDev42/5f23cd03eab33e0d73f6f6227912451e to your computer and use it in GitHub Desktop.
{
"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