This repository has been archived by the owner on Jan 24, 2024. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(goldfinch): Move app integration to studio (#1945)
* fix(goldfinch): Move app integration to studio * fix(goldfinch): Add logo
- Loading branch information
Showing
20 changed files
with
9,515 additions
and
0 deletions.
There are no files selected for viewing
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
863 changes: 863 additions & 0 deletions
863
src/apps/goldfinch/contracts/abis/goldfinch-senior-bond.json
Large diffs are not rendered by default.
Oops, something went wrong.
391 changes: 391 additions & 0 deletions
391
src/apps/goldfinch/contracts/abis/goldfinch-senior-pool.json
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,391 @@ | ||
[ | ||
{ | ||
"anonymous": false, | ||
"inputs": [ | ||
{ "indexed": true, "internalType": "address", "name": "capitalProvider", "type": "address" }, | ||
{ "indexed": false, "internalType": "uint256", "name": "amount", "type": "uint256" }, | ||
{ "indexed": false, "internalType": "uint256", "name": "shares", "type": "uint256" } | ||
], | ||
"name": "DepositMade", | ||
"type": "event" | ||
}, | ||
{ | ||
"anonymous": false, | ||
"inputs": [ | ||
{ "indexed": true, "internalType": "address", "name": "who", "type": "address" }, | ||
{ "indexed": false, "internalType": "address", "name": "configAddress", "type": "address" } | ||
], | ||
"name": "GoldfinchConfigUpdated", | ||
"type": "event" | ||
}, | ||
{ | ||
"anonymous": false, | ||
"inputs": [ | ||
{ "indexed": true, "internalType": "address", "name": "payer", "type": "address" }, | ||
{ "indexed": false, "internalType": "uint256", "name": "amount", "type": "uint256" } | ||
], | ||
"name": "InterestCollected", | ||
"type": "event" | ||
}, | ||
{ | ||
"anonymous": false, | ||
"inputs": [ | ||
{ "indexed": true, "internalType": "address", "name": "tranchedPool", "type": "address" }, | ||
{ "indexed": false, "internalType": "uint256", "name": "amount", "type": "uint256" } | ||
], | ||
"name": "InvestmentMadeInJunior", | ||
"type": "event" | ||
}, | ||
{ | ||
"anonymous": false, | ||
"inputs": [ | ||
{ "indexed": true, "internalType": "address", "name": "tranchedPool", "type": "address" }, | ||
{ "indexed": false, "internalType": "uint256", "name": "amount", "type": "uint256" } | ||
], | ||
"name": "InvestmentMadeInSenior", | ||
"type": "event" | ||
}, | ||
{ | ||
"anonymous": false, | ||
"inputs": [{ "indexed": false, "internalType": "address", "name": "account", "type": "address" }], | ||
"name": "Paused", | ||
"type": "event" | ||
}, | ||
{ | ||
"anonymous": false, | ||
"inputs": [ | ||
{ "indexed": true, "internalType": "address", "name": "payer", "type": "address" }, | ||
{ "indexed": false, "internalType": "uint256", "name": "amount", "type": "uint256" } | ||
], | ||
"name": "PrincipalCollected", | ||
"type": "event" | ||
}, | ||
{ | ||
"anonymous": false, | ||
"inputs": [ | ||
{ "indexed": true, "internalType": "address", "name": "tranchedPool", "type": "address" }, | ||
{ "indexed": false, "internalType": "int256", "name": "amount", "type": "int256" } | ||
], | ||
"name": "PrincipalWrittenDown", | ||
"type": "event" | ||
}, | ||
{ | ||
"anonymous": false, | ||
"inputs": [ | ||
{ "indexed": true, "internalType": "address", "name": "user", "type": "address" }, | ||
{ "indexed": false, "internalType": "uint256", "name": "amount", "type": "uint256" } | ||
], | ||
"name": "ReserveFundsCollected", | ||
"type": "event" | ||
}, | ||
{ | ||
"anonymous": false, | ||
"inputs": [ | ||
{ "indexed": true, "internalType": "bytes32", "name": "role", "type": "bytes32" }, | ||
{ "indexed": true, "internalType": "address", "name": "account", "type": "address" }, | ||
{ "indexed": true, "internalType": "address", "name": "sender", "type": "address" } | ||
], | ||
"name": "RoleGranted", | ||
"type": "event" | ||
}, | ||
{ | ||
"anonymous": false, | ||
"inputs": [ | ||
{ "indexed": true, "internalType": "bytes32", "name": "role", "type": "bytes32" }, | ||
{ "indexed": true, "internalType": "address", "name": "account", "type": "address" }, | ||
{ "indexed": true, "internalType": "address", "name": "sender", "type": "address" } | ||
], | ||
"name": "RoleRevoked", | ||
"type": "event" | ||
}, | ||
{ | ||
"anonymous": false, | ||
"inputs": [{ "indexed": false, "internalType": "address", "name": "account", "type": "address" }], | ||
"name": "Unpaused", | ||
"type": "event" | ||
}, | ||
{ | ||
"anonymous": false, | ||
"inputs": [ | ||
{ "indexed": true, "internalType": "address", "name": "capitalProvider", "type": "address" }, | ||
{ "indexed": false, "internalType": "uint256", "name": "userAmount", "type": "uint256" }, | ||
{ "indexed": false, "internalType": "uint256", "name": "reserveAmount", "type": "uint256" } | ||
], | ||
"name": "WithdrawalMade", | ||
"type": "event" | ||
}, | ||
{ | ||
"inputs": [], | ||
"name": "DEFAULT_ADMIN_ROLE", | ||
"outputs": [{ "internalType": "bytes32", "name": "", "type": "bytes32" }], | ||
"stateMutability": "view", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [], | ||
"name": "OWNER_ROLE", | ||
"outputs": [{ "internalType": "bytes32", "name": "", "type": "bytes32" }], | ||
"stateMutability": "view", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [], | ||
"name": "PAUSER_ROLE", | ||
"outputs": [{ "internalType": "bytes32", "name": "", "type": "bytes32" }], | ||
"stateMutability": "view", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [], | ||
"name": "ZAPPER_ROLE", | ||
"outputs": [{ "internalType": "bytes32", "name": "", "type": "bytes32" }], | ||
"stateMutability": "view", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [{ "internalType": "address", "name": "owner", "type": "address" }], | ||
"name": "__BaseUpgradeablePausable__init", | ||
"outputs": [], | ||
"stateMutability": "nonpayable", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [], | ||
"name": "__PauserPausable__init", | ||
"outputs": [], | ||
"stateMutability": "nonpayable", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [], | ||
"name": "assets", | ||
"outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], | ||
"stateMutability": "view", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [{ "internalType": "uint256", "name": "tokenId", "type": "uint256" }], | ||
"name": "calculateWritedown", | ||
"outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], | ||
"stateMutability": "view", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [], | ||
"name": "compoundBalance", | ||
"outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], | ||
"stateMutability": "view", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [], | ||
"name": "config", | ||
"outputs": [{ "internalType": "contract GoldfinchConfig", "name": "", "type": "address" }], | ||
"stateMutability": "view", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [{ "internalType": "uint256", "name": "amount", "type": "uint256" }], | ||
"name": "deposit", | ||
"outputs": [{ "internalType": "uint256", "name": "depositShares", "type": "uint256" }], | ||
"stateMutability": "nonpayable", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [ | ||
{ "internalType": "uint256", "name": "amount", "type": "uint256" }, | ||
{ "internalType": "uint256", "name": "deadline", "type": "uint256" }, | ||
{ "internalType": "uint8", "name": "v", "type": "uint8" }, | ||
{ "internalType": "bytes32", "name": "r", "type": "bytes32" }, | ||
{ "internalType": "bytes32", "name": "s", "type": "bytes32" } | ||
], | ||
"name": "depositWithPermit", | ||
"outputs": [{ "internalType": "uint256", "name": "depositShares", "type": "uint256" }], | ||
"stateMutability": "nonpayable", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [{ "internalType": "contract ITranchedPool", "name": "pool", "type": "address" }], | ||
"name": "estimateInvestment", | ||
"outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], | ||
"stateMutability": "view", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [{ "internalType": "uint256", "name": "amount", "type": "uint256" }], | ||
"name": "getNumShares", | ||
"outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], | ||
"stateMutability": "view", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [{ "internalType": "bytes32", "name": "role", "type": "bytes32" }], | ||
"name": "getRoleAdmin", | ||
"outputs": [{ "internalType": "bytes32", "name": "", "type": "bytes32" }], | ||
"stateMutability": "view", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [ | ||
{ "internalType": "bytes32", "name": "role", "type": "bytes32" }, | ||
{ "internalType": "uint256", "name": "index", "type": "uint256" } | ||
], | ||
"name": "getRoleMember", | ||
"outputs": [{ "internalType": "address", "name": "", "type": "address" }], | ||
"stateMutability": "view", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [{ "internalType": "bytes32", "name": "role", "type": "bytes32" }], | ||
"name": "getRoleMemberCount", | ||
"outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], | ||
"stateMutability": "view", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [ | ||
{ "internalType": "bytes32", "name": "role", "type": "bytes32" }, | ||
{ "internalType": "address", "name": "account", "type": "address" } | ||
], | ||
"name": "grantRole", | ||
"outputs": [], | ||
"stateMutability": "nonpayable", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [ | ||
{ "internalType": "bytes32", "name": "role", "type": "bytes32" }, | ||
{ "internalType": "address", "name": "account", "type": "address" } | ||
], | ||
"name": "hasRole", | ||
"outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], | ||
"stateMutability": "view", | ||
"type": "function" | ||
}, | ||
{ "inputs": [], "name": "initZapperRole", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, | ||
{ | ||
"inputs": [ | ||
{ "internalType": "address", "name": "owner", "type": "address" }, | ||
{ "internalType": "contract GoldfinchConfig", "name": "_config", "type": "address" } | ||
], | ||
"name": "initialize", | ||
"outputs": [], | ||
"stateMutability": "nonpayable", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [{ "internalType": "contract ITranchedPool", "name": "pool", "type": "address" }], | ||
"name": "invest", | ||
"outputs": [], | ||
"stateMutability": "nonpayable", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [], | ||
"name": "isAdmin", | ||
"outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], | ||
"stateMutability": "view", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [], | ||
"name": "isZapper", | ||
"outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], | ||
"stateMutability": "view", | ||
"type": "function" | ||
}, | ||
{ "inputs": [], "name": "pause", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, | ||
{ | ||
"inputs": [], | ||
"name": "paused", | ||
"outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], | ||
"stateMutability": "view", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [{ "internalType": "uint256", "name": "tokenId", "type": "uint256" }], | ||
"name": "redeem", | ||
"outputs": [], | ||
"stateMutability": "nonpayable", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [ | ||
{ "internalType": "bytes32", "name": "role", "type": "bytes32" }, | ||
{ "internalType": "address", "name": "account", "type": "address" } | ||
], | ||
"name": "renounceRole", | ||
"outputs": [], | ||
"stateMutability": "nonpayable", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [ | ||
{ "internalType": "bytes32", "name": "role", "type": "bytes32" }, | ||
{ "internalType": "address", "name": "account", "type": "address" } | ||
], | ||
"name": "revokeRole", | ||
"outputs": [], | ||
"stateMutability": "nonpayable", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [], | ||
"name": "sharePrice", | ||
"outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], | ||
"stateMutability": "view", | ||
"type": "function" | ||
}, | ||
{ "inputs": [], "name": "sweepFromCompound", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, | ||
{ "inputs": [], "name": "sweepToCompound", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, | ||
{ | ||
"inputs": [], | ||
"name": "totalLoansOutstanding", | ||
"outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], | ||
"stateMutability": "view", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [], | ||
"name": "totalWritedowns", | ||
"outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], | ||
"stateMutability": "view", | ||
"type": "function" | ||
}, | ||
{ "inputs": [], "name": "unpause", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, | ||
{ | ||
"inputs": [{ "internalType": "uint256", "name": "usdcAmount", "type": "uint256" }], | ||
"name": "withdraw", | ||
"outputs": [{ "internalType": "uint256", "name": "amount", "type": "uint256" }], | ||
"stateMutability": "nonpayable", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [{ "internalType": "uint256", "name": "fiduAmount", "type": "uint256" }], | ||
"name": "withdrawInFidu", | ||
"outputs": [{ "internalType": "uint256", "name": "amount", "type": "uint256" }], | ||
"stateMutability": "nonpayable", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [{ "internalType": "uint256", "name": "tokenId", "type": "uint256" }], | ||
"name": "writedown", | ||
"outputs": [], | ||
"stateMutability": "nonpayable", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [{ "internalType": "contract ITranchedPool", "name": "", "type": "address" }], | ||
"name": "writedowns", | ||
"outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], | ||
"stateMutability": "view", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], | ||
"name": "writedownsByPoolToken", | ||
"outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], | ||
"stateMutability": "view", | ||
"type": "function" | ||
} | ||
] |
Oops, something went wrong.