Created
October 25, 2023 16:32
-
-
Save tomrpl/393c57cb0fb4b75446dbf9e16f646228 to your computer and use it in GitHub Desktop.
Blue Events Lib
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
{ | |
"abi": [ | |
{ | |
"anonymous": false, | |
"inputs": [ | |
{ | |
"indexed": true, | |
"internalType": "Id", | |
"name": "id", | |
"type": "bytes32" | |
}, | |
{ | |
"indexed": false, | |
"internalType": "uint256", | |
"name": "prevBorrowRate", | |
"type": "uint256" | |
}, | |
{ | |
"indexed": false, | |
"internalType": "uint256", | |
"name": "interest", | |
"type": "uint256" | |
}, | |
{ | |
"indexed": false, | |
"internalType": "uint256", | |
"name": "feeShares", | |
"type": "uint256" | |
} | |
], | |
"name": "AccrueInterest", | |
"type": "event" | |
}, | |
{ | |
"anonymous": false, | |
"inputs": [ | |
{ | |
"indexed": true, | |
"internalType": "Id", | |
"name": "id", | |
"type": "bytes32" | |
}, | |
{ | |
"indexed": false, | |
"internalType": "address", | |
"name": "caller", | |
"type": "address" | |
}, | |
{ | |
"indexed": true, | |
"internalType": "address", | |
"name": "onBehalf", | |
"type": "address" | |
}, | |
{ | |
"indexed": true, | |
"internalType": "address", | |
"name": "receiver", | |
"type": "address" | |
}, | |
{ | |
"indexed": false, | |
"internalType": "uint256", | |
"name": "assets", | |
"type": "uint256" | |
}, | |
{ | |
"indexed": false, | |
"internalType": "uint256", | |
"name": "shares", | |
"type": "uint256" | |
} | |
], | |
"name": "Borrow", | |
"type": "event" | |
}, | |
{ | |
"anonymous": false, | |
"inputs": [ | |
{ | |
"indexed": true, | |
"internalType": "Id", | |
"name": "id", | |
"type": "bytes32" | |
}, | |
{ | |
"components": [ | |
{ | |
"internalType": "address", | |
"name": "loanToken", | |
"type": "address" | |
}, | |
{ | |
"internalType": "address", | |
"name": "collateralToken", | |
"type": "address" | |
}, | |
{ | |
"internalType": "address", | |
"name": "oracle", | |
"type": "address" | |
}, | |
{ | |
"internalType": "address", | |
"name": "irm", | |
"type": "address" | |
}, | |
{ | |
"internalType": "uint256", | |
"name": "lltv", | |
"type": "uint256" | |
} | |
], | |
"indexed": false, | |
"internalType": "struct MarketParams", | |
"name": "marketParams", | |
"type": "tuple" | |
} | |
], | |
"name": "CreateMarket", | |
"type": "event" | |
}, | |
{ | |
"anonymous": false, | |
"inputs": [ | |
{ | |
"indexed": true, | |
"internalType": "address", | |
"name": "irm", | |
"type": "address" | |
} | |
], | |
"name": "EnableIrm", | |
"type": "event" | |
}, | |
{ | |
"anonymous": false, | |
"inputs": [ | |
{ | |
"indexed": false, | |
"internalType": "uint256", | |
"name": "lltv", | |
"type": "uint256" | |
} | |
], | |
"name": "EnableLltv", | |
"type": "event" | |
}, | |
{ | |
"anonymous": false, | |
"inputs": [ | |
{ | |
"indexed": true, | |
"internalType": "address", | |
"name": "caller", | |
"type": "address" | |
}, | |
{ | |
"indexed": true, | |
"internalType": "address", | |
"name": "token", | |
"type": "address" | |
}, | |
{ | |
"indexed": false, | |
"internalType": "uint256", | |
"name": "assets", | |
"type": "uint256" | |
} | |
], | |
"name": "FlashLoan", | |
"type": "event" | |
}, | |
{ | |
"anonymous": false, | |
"inputs": [ | |
{ | |
"indexed": true, | |
"internalType": "address", | |
"name": "caller", | |
"type": "address" | |
}, | |
{ | |
"indexed": true, | |
"internalType": "address", | |
"name": "authorizer", | |
"type": "address" | |
}, | |
{ | |
"indexed": false, | |
"internalType": "uint256", | |
"name": "usedNonce", | |
"type": "uint256" | |
} | |
], | |
"name": "IncrementNonce", | |
"type": "event" | |
}, | |
{ | |
"anonymous": false, | |
"inputs": [ | |
{ | |
"indexed": true, | |
"internalType": "Id", | |
"name": "id", | |
"type": "bytes32" | |
}, | |
{ | |
"indexed": true, | |
"internalType": "address", | |
"name": "caller", | |
"type": "address" | |
}, | |
{ | |
"indexed": true, | |
"internalType": "address", | |
"name": "borrower", | |
"type": "address" | |
}, | |
{ | |
"indexed": false, | |
"internalType": "uint256", | |
"name": "repaidAssets", | |
"type": "uint256" | |
}, | |
{ | |
"indexed": false, | |
"internalType": "uint256", | |
"name": "repaidShares", | |
"type": "uint256" | |
}, | |
{ | |
"indexed": false, | |
"internalType": "uint256", | |
"name": "seizedAssets", | |
"type": "uint256" | |
}, | |
{ | |
"indexed": false, | |
"internalType": "uint256", | |
"name": "badDebtShares", | |
"type": "uint256" | |
} | |
], | |
"name": "Liquidate", | |
"type": "event" | |
}, | |
{ | |
"anonymous": false, | |
"inputs": [ | |
{ | |
"indexed": true, | |
"internalType": "Id", | |
"name": "id", | |
"type": "bytes32" | |
}, | |
{ | |
"indexed": true, | |
"internalType": "address", | |
"name": "caller", | |
"type": "address" | |
}, | |
{ | |
"indexed": true, | |
"internalType": "address", | |
"name": "onBehalf", | |
"type": "address" | |
}, | |
{ | |
"indexed": false, | |
"internalType": "uint256", | |
"name": "assets", | |
"type": "uint256" | |
}, | |
{ | |
"indexed": false, | |
"internalType": "uint256", | |
"name": "shares", | |
"type": "uint256" | |
} | |
], | |
"name": "Repay", | |
"type": "event" | |
}, | |
{ | |
"anonymous": false, | |
"inputs": [ | |
{ | |
"indexed": true, | |
"internalType": "address", | |
"name": "caller", | |
"type": "address" | |
}, | |
{ | |
"indexed": true, | |
"internalType": "address", | |
"name": "authorizer", | |
"type": "address" | |
}, | |
{ | |
"indexed": true, | |
"internalType": "address", | |
"name": "authorized", | |
"type": "address" | |
}, | |
{ | |
"indexed": false, | |
"internalType": "bool", | |
"name": "newIsAuthorized", | |
"type": "bool" | |
} | |
], | |
"name": "SetAuthorization", | |
"type": "event" | |
}, | |
{ | |
"anonymous": false, | |
"inputs": [ | |
{ | |
"indexed": true, | |
"internalType": "Id", | |
"name": "id", | |
"type": "bytes32" | |
}, | |
{ | |
"indexed": false, | |
"internalType": "uint256", | |
"name": "newFee", | |
"type": "uint256" | |
} | |
], | |
"name": "SetFee", | |
"type": "event" | |
}, | |
{ | |
"anonymous": false, | |
"inputs": [ | |
{ | |
"indexed": true, | |
"internalType": "address", | |
"name": "newFeeRecipient", | |
"type": "address" | |
} | |
], | |
"name": "SetFeeRecipient", | |
"type": "event" | |
}, | |
{ | |
"anonymous": false, | |
"inputs": [ | |
{ | |
"indexed": true, | |
"internalType": "address", | |
"name": "newOwner", | |
"type": "address" | |
} | |
], | |
"name": "SetOwner", | |
"type": "event" | |
}, | |
{ | |
"anonymous": false, | |
"inputs": [ | |
{ | |
"indexed": true, | |
"internalType": "Id", | |
"name": "id", | |
"type": "bytes32" | |
}, | |
{ | |
"indexed": true, | |
"internalType": "address", | |
"name": "caller", | |
"type": "address" | |
}, | |
{ | |
"indexed": true, | |
"internalType": "address", | |
"name": "onBehalf", | |
"type": "address" | |
}, | |
{ | |
"indexed": false, | |
"internalType": "uint256", | |
"name": "assets", | |
"type": "uint256" | |
}, | |
{ | |
"indexed": false, | |
"internalType": "uint256", | |
"name": "shares", | |
"type": "uint256" | |
} | |
], | |
"name": "Supply", | |
"type": "event" | |
}, | |
{ | |
"anonymous": false, | |
"inputs": [ | |
{ | |
"indexed": true, | |
"internalType": "Id", | |
"name": "id", | |
"type": "bytes32" | |
}, | |
{ | |
"indexed": true, | |
"internalType": "address", | |
"name": "caller", | |
"type": "address" | |
}, | |
{ | |
"indexed": true, | |
"internalType": "address", | |
"name": "onBehalf", | |
"type": "address" | |
}, | |
{ | |
"indexed": false, | |
"internalType": "uint256", | |
"name": "assets", | |
"type": "uint256" | |
} | |
], | |
"name": "SupplyCollateral", | |
"type": "event" | |
}, | |
{ | |
"anonymous": false, | |
"inputs": [ | |
{ | |
"indexed": true, | |
"internalType": "Id", | |
"name": "id", | |
"type": "bytes32" | |
}, | |
{ | |
"indexed": false, | |
"internalType": "address", | |
"name": "caller", | |
"type": "address" | |
}, | |
{ | |
"indexed": true, | |
"internalType": "address", | |
"name": "onBehalf", | |
"type": "address" | |
}, | |
{ | |
"indexed": true, | |
"internalType": "address", | |
"name": "receiver", | |
"type": "address" | |
}, | |
{ | |
"indexed": false, | |
"internalType": "uint256", | |
"name": "assets", | |
"type": "uint256" | |
}, | |
{ | |
"indexed": false, | |
"internalType": "uint256", | |
"name": "shares", | |
"type": "uint256" | |
} | |
], | |
"name": "Withdraw", | |
"type": "event" | |
}, | |
{ | |
"anonymous": false, | |
"inputs": [ | |
{ | |
"indexed": true, | |
"internalType": "Id", | |
"name": "id", | |
"type": "bytes32" | |
}, | |
{ | |
"indexed": false, | |
"internalType": "address", | |
"name": "caller", | |
"type": "address" | |
}, | |
{ | |
"indexed": true, | |
"internalType": "address", | |
"name": "onBehalf", | |
"type": "address" | |
}, | |
{ | |
"indexed": true, | |
"internalType": "address", | |
"name": "receiver", | |
"type": "address" | |
}, | |
{ | |
"indexed": false, | |
"internalType": "uint256", | |
"name": "assets", | |
"type": "uint256" | |
} | |
], | |
"name": "WithdrawCollateral", | |
"type": "event" | |
} | |
], | |
"bytecode": { | |
"object": "0x60808060405234601757603a9081601d823930815050f35b600080fdfe600080fdfea26469706673582212201465993ad1581066fa6497601e6692aed714aca90b7838454e2cdfb969149e2064736f6c63430008130033", | |
"sourceMap": "253:5812:31:-:0;;;;;;;;;;;;;;;;;;;;;", | |
"linkReferences": {} | |
}, | |
"deployedBytecode": { | |
"object": "0x600080fdfea26469706673582212201465993ad1581066fa6497601e6692aed714aca90b7838454e2cdfb969149e2064736f6c63430008130033", | |
"sourceMap": "253:5812:31:-:0;;", | |
"linkReferences": {} | |
}, | |
"methodIdentifiers": {}, | |
"rawMetadata": "{\"compiler\":{\"version\":\"0.8.19+commit.7dd6d404\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"Id\",\"name\":\"id\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"prevBorrowRate\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"interest\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"feeShares\",\"type\":\"uint256\"}],\"name\":\"AccrueInterest\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"Id\",\"name\":\"id\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"caller\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"onBehalf\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"receiver\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"assets\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"shares\",\"type\":\"uint256\"}],\"name\":\"Borrow\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"Id\",\"name\":\"id\",\"type\":\"bytes32\"},{\"components\":[{\"internalType\":\"address\",\"name\":\"loanToken\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"collateralToken\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"oracle\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"irm\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"lltv\",\"type\":\"uint256\"}],\"indexed\":false,\"internalType\":\"struct MarketParams\",\"name\":\"marketParams\",\"type\":\"tuple\"}],\"name\":\"CreateMarket\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"irm\",\"type\":\"address\"}],\"name\":\"EnableIrm\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"lltv\",\"type\":\"uint256\"}],\"name\":\"EnableLltv\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"caller\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"assets\",\"type\":\"uint256\"}],\"name\":\"FlashLoan\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"caller\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"authorizer\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"usedNonce\",\"type\":\"uint256\"}],\"name\":\"IncrementNonce\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"Id\",\"name\":\"id\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"caller\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"borrower\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"repaidAssets\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"repaidShares\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"seizedAssets\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"badDebtShares\",\"type\":\"uint256\"}],\"name\":\"Liquidate\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"Id\",\"name\":\"id\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"caller\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"onBehalf\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"assets\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"shares\",\"type\":\"uint256\"}],\"name\":\"Repay\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"caller\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"authorizer\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"authorized\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"bool\",\"name\":\"newIsAuthorized\",\"type\":\"bool\"}],\"name\":\"SetAuthorization\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"Id\",\"name\":\"id\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"newFee\",\"type\":\"uint256\"}],\"name\":\"SetFee\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newFeeRecipient\",\"type\":\"address\"}],\"name\":\"SetFeeRecipient\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"SetOwner\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"Id\",\"name\":\"id\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"caller\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"onBehalf\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"assets\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"shares\",\"type\":\"uint256\"}],\"name\":\"Supply\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"Id\",\"name\":\"id\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"caller\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"onBehalf\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"assets\",\"type\":\"uint256\"}],\"name\":\"SupplyCollateral\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"Id\",\"name\":\"id\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"caller\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"onBehalf\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"receiver\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"assets\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"shares\",\"type\":\"uint256\"}],\"name\":\"Withdraw\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"Id\",\"name\":\"id\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"caller\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"onBehalf\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"receiver\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"assets\",\"type\":\"uint256\"}],\"name\":\"WithdrawCollateral\",\"type\":\"event\"}],\"devdoc\":{\"author\":\"Morpho Labs\",\"custom:contact\":\"security@morpho.org\",\"events\":{\"AccrueInterest(bytes32,uint256,uint256,uint256)\":{\"params\":{\"feeShares\":\"The amount of shares minted as fee.\",\"id\":\"The market id.\",\"interest\":\"The amount of interest accrued.\",\"prevBorrowRate\":\"The previous borrow rate.\"}},\"Borrow(bytes32,address,address,address,uint256,uint256)\":{\"params\":{\"assets\":\"The amount of assets borrowed.\",\"caller\":\"The caller.\",\"id\":\"The market id.\",\"onBehalf\":\"The address from which the assets were borrowed.\",\"receiver\":\"The address that received the borrowed assets.\",\"shares\":\"The amount of shares minted.\"}},\"CreateMarket(bytes32,(address,address,address,address,uint256))\":{\"params\":{\"id\":\"The market id.\",\"marketParams\":\"The market that was created.\"}},\"EnableIrm(address)\":{\"params\":{\"irm\":\"The IRM that was enabled.\"}},\"EnableLltv(uint256)\":{\"params\":{\"lltv\":\"The LLTV that was enabled.\"}},\"FlashLoan(address,address,uint256)\":{\"params\":{\"assets\":\"The amount that was flash loaned.\",\"caller\":\"The caller.\",\"token\":\"The token that was flash loaned.\"}},\"IncrementNonce(address,address,uint256)\":{\"params\":{\"authorizer\":\"The authorizer address.\",\"caller\":\"The caller.\",\"usedNonce\":\"The nonce that was used.\"}},\"Liquidate(bytes32,address,address,uint256,uint256,uint256,uint256)\":{\"params\":{\"badDebtShares\":\"The amount of shares minted as bad debt.\",\"borrower\":\"The borrower of the position.\",\"caller\":\"The caller.\",\"id\":\"The market id.\",\"repaidAssets\":\"The amount of assets repaid. May be 1 over the corresponding market's `totalBorrowAssets`.\",\"repaidShares\":\"The amount of shares burned.\",\"seizedAssets\":\"The amount of collateral seized.\"}},\"Repay(bytes32,address,address,uint256,uint256)\":{\"params\":{\"assets\":\"The amount of assets repaid. May be 1 over the corresponding market's `totalBorrowAssets`.\",\"caller\":\"The caller.\",\"id\":\"The market id.\",\"onBehalf\":\"The address for which the assets were repaid.\",\"shares\":\"The amount of shares burned.\"}},\"SetAuthorization(address,address,address,bool)\":{\"params\":{\"authorized\":\"The authorized address.\",\"authorizer\":\"The authorizer address.\",\"caller\":\"The caller.\",\"newIsAuthorized\":\"The new authorization status.\"}},\"SetFee(bytes32,uint256)\":{\"params\":{\"id\":\"The market id.\",\"newFee\":\"The new fee.\"}},\"SetFeeRecipient(address)\":{\"params\":{\"newFeeRecipient\":\"The new fee recipient.\"}},\"SetOwner(address)\":{\"params\":{\"newOwner\":\"The new owner of the contract.\"}},\"Supply(bytes32,address,address,uint256,uint256)\":{\"params\":{\"assets\":\"The amount of assets supplied.\",\"caller\":\"The caller.\",\"id\":\"The market id.\",\"onBehalf\":\"The address that received the supply.\",\"shares\":\"The amount of shares minted.\"}},\"SupplyCollateral(bytes32,address,address,uint256)\":{\"params\":{\"assets\":\"The amount of collateral supplied.\",\"caller\":\"The caller.\",\"id\":\"The market id.\",\"onBehalf\":\"The address that received the collateral.\"}},\"Withdraw(bytes32,address,address,address,uint256,uint256)\":{\"params\":{\"assets\":\"The amount of assets withdrawn.\",\"caller\":\"The caller.\",\"id\":\"The market id.\",\"onBehalf\":\"The address from which the assets were withdrawn.\",\"receiver\":\"The address that received the withdrawn assets.\",\"shares\":\"The amount of shares burned.\"}},\"WithdrawCollateral(bytes32,address,address,address,uint256)\":{\"params\":{\"assets\":\"The amount of collateral withdrawn.\",\"caller\":\"The caller.\",\"id\":\"The market id.\",\"onBehalf\":\"The address from which the collateral was withdrawn.\",\"receiver\":\"The address that received the withdrawn collateral.\"}}},\"kind\":\"dev\",\"methods\":{},\"title\":\"EventsLib\",\"version\":1},\"userdoc\":{\"events\":{\"AccrueInterest(bytes32,uint256,uint256,uint256)\":{\"notice\":\"Emitted when accruing interest.\"},\"Borrow(bytes32,address,address,address,uint256,uint256)\":{\"notice\":\"Emitted on borrow of assets.\"},\"CreateMarket(bytes32,(address,address,address,address,uint256))\":{\"notice\":\"Emitted when creating a market.\"},\"EnableIrm(address)\":{\"notice\":\"Emitted when enabling an IRM.\"},\"EnableLltv(uint256)\":{\"notice\":\"Emitted when enabling an LLTV.\"},\"FlashLoan(address,address,uint256)\":{\"notice\":\"Emitted on flash loan.\"},\"IncrementNonce(address,address,uint256)\":{\"notice\":\"Emitted when setting an authorization with a signature.\"},\"Liquidate(bytes32,address,address,uint256,uint256,uint256,uint256)\":{\"notice\":\"Emitted on liquidation of a position.\"},\"Repay(bytes32,address,address,uint256,uint256)\":{\"notice\":\"Emitted on repayment of assets.\"},\"SetAuthorization(address,address,address,bool)\":{\"notice\":\"Emitted when setting an authorization.\"},\"SetFee(bytes32,uint256)\":{\"notice\":\"Emitted when setting a new fee.\"},\"SetFeeRecipient(address)\":{\"notice\":\"Emitted when setting a new fee recipient.\"},\"SetOwner(address)\":{\"notice\":\"Emitted when setting a new owner.\"},\"Supply(bytes32,address,address,uint256,uint256)\":{\"notice\":\"Emitted on supply of assets.\"},\"SupplyCollateral(bytes32,address,address,uint256)\":{\"notice\":\"Emitted on supply of collateral.\"},\"Withdraw(bytes32,address,address,address,uint256,uint256)\":{\"notice\":\"Emitted on withdrawal of assets.\"},\"WithdrawCollateral(bytes32,address,address,address,uint256)\":{\"notice\":\"Emitted on withdrawal of collateral.\"}},\"kind\":\"user\",\"methods\":{},\"notice\":\"Library exposing events.\",\"version\":1}},\"settings\":{\"compilationTarget\":{\"src/libraries/EventsLib.sol\":\"EventsLib\"},\"evmVersion\":\"paris\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":true,\"runs\":4294967295},\"remappings\":[\":@morpho-blue/=/\",\":ds-test/=lib/forge-std/lib/ds-test/src/\",\":erc4626-tests/=lib/openzeppelin-contracts/lib/erc4626-tests/\",\":eth-gas-reporter/=node_modules/eth-gas-reporter/\",\":forge-std/=lib/forge-std/src/\",\":hardhat/=node_modules/hardhat/\",\":openzeppelin-contracts/=lib/openzeppelin-contracts/\",\":openzeppelin/=lib/openzeppelin-contracts/contracts/\",\":solmate/=lib/solmate/src/\"],\"viaIR\":true},\"sources\":{\"src/interfaces/IMorpho.sol\":{\"keccak256\":\"0x77157c767415458ec490c572c2e57a1b4cc9a84b581ca1ebe27051a5ef76df69\",\"license\":\"GPL-2.0-or-later\",\"urls\":[\"bzz-raw://cf5c60e4d1c61656230a54767efa2404256c4bbe97dbe9a07bab88aea44a51e3\",\"dweb:/ipfs/QmSN472LYZNz6BbsHrY9UoPSgGvsaj33jiLoPk5A5yN71g\"]},\"src/libraries/EventsLib.sol\":{\"keccak256\":\"0x7f9f2e586c9957e48ffcddb8cc0573fc30e61d52ec4509e4bbb2b01135397ab9\",\"license\":\"GPL-2.0-or-later\",\"urls\":[\"bzz-raw://fbce1aa3a93af726cfaa757f3c52bf05db6195978aed278fbb2f9b07492195b6\",\"dweb:/ipfs/QmT2BrifKJsg1bYywGugCayXbAD6W9MwxoWqKjxCWu6P6G\"]}},\"version\":1}", | |
"metadata": { | |
"compiler": { | |
"version": "0.8.19+commit.7dd6d404" | |
}, | |
"language": "Solidity", | |
"output": { | |
"abi": [ | |
{ | |
"inputs": [ | |
{ | |
"internalType": "Id", | |
"name": "id", | |
"type": "bytes32", | |
"indexed": true | |
}, | |
{ | |
"internalType": "uint256", | |
"name": "prevBorrowRate", | |
"type": "uint256", | |
"indexed": false | |
}, | |
{ | |
"internalType": "uint256", | |
"name": "interest", | |
"type": "uint256", | |
"indexed": false | |
}, | |
{ | |
"internalType": "uint256", | |
"name": "feeShares", | |
"type": "uint256", | |
"indexed": false | |
} | |
], | |
"type": "event", | |
"name": "AccrueInterest", | |
"anonymous": false | |
}, | |
{ | |
"inputs": [ | |
{ | |
"internalType": "Id", | |
"name": "id", | |
"type": "bytes32", | |
"indexed": true | |
}, | |
{ | |
"internalType": "address", | |
"name": "caller", | |
"type": "address", | |
"indexed": false | |
}, | |
{ | |
"internalType": "address", | |
"name": "onBehalf", | |
"type": "address", | |
"indexed": true | |
}, | |
{ | |
"internalType": "address", | |
"name": "receiver", | |
"type": "address", | |
"indexed": true | |
}, | |
{ | |
"internalType": "uint256", | |
"name": "assets", | |
"type": "uint256", | |
"indexed": false | |
}, | |
{ | |
"internalType": "uint256", | |
"name": "shares", | |
"type": "uint256", | |
"indexed": false | |
} | |
], | |
"type": "event", | |
"name": "Borrow", | |
"anonymous": false | |
}, | |
{ | |
"inputs": [ | |
{ | |
"internalType": "Id", | |
"name": "id", | |
"type": "bytes32", | |
"indexed": true | |
}, | |
{ | |
"internalType": "struct MarketParams", | |
"name": "marketParams", | |
"type": "tuple", | |
"components": [ | |
{ | |
"internalType": "address", | |
"name": "loanToken", | |
"type": "address" | |
}, | |
{ | |
"internalType": "address", | |
"name": "collateralToken", | |
"type": "address" | |
}, | |
{ | |
"internalType": "address", | |
"name": "oracle", | |
"type": "address" | |
}, | |
{ | |
"internalType": "address", | |
"name": "irm", | |
"type": "address" | |
}, | |
{ | |
"internalType": "uint256", | |
"name": "lltv", | |
"type": "uint256" | |
} | |
], | |
"indexed": false | |
} | |
], | |
"type": "event", | |
"name": "CreateMarket", | |
"anonymous": false | |
}, | |
{ | |
"inputs": [ | |
{ | |
"internalType": "address", | |
"name": "irm", | |
"type": "address", | |
"indexed": true | |
} | |
], | |
"type": "event", | |
"name": "EnableIrm", | |
"anonymous": false | |
}, | |
{ | |
"inputs": [ | |
{ | |
"internalType": "uint256", | |
"name": "lltv", | |
"type": "uint256", | |
"indexed": false | |
} | |
], | |
"type": "event", | |
"name": "EnableLltv", | |
"anonymous": false | |
}, | |
{ | |
"inputs": [ | |
{ | |
"internalType": "address", | |
"name": "caller", | |
"type": "address", | |
"indexed": true | |
}, | |
{ | |
"internalType": "address", | |
"name": "token", | |
"type": "address", | |
"indexed": true | |
}, | |
{ | |
"internalType": "uint256", | |
"name": "assets", | |
"type": "uint256", | |
"indexed": false | |
} | |
], | |
"type": "event", | |
"name": "FlashLoan", | |
"anonymous": false | |
}, | |
{ | |
"inputs": [ | |
{ | |
"internalType": "address", | |
"name": "caller", | |
"type": "address", | |
"indexed": true | |
}, | |
{ | |
"internalType": "address", | |
"name": "authorizer", | |
"type": "address", | |
"indexed": true | |
}, | |
{ | |
"internalType": "uint256", | |
"name": "usedNonce", | |
"type": "uint256", | |
"indexed": false | |
} | |
], | |
"type": "event", | |
"name": "IncrementNonce", | |
"anonymous": false | |
}, | |
{ | |
"inputs": [ | |
{ | |
"internalType": "Id", | |
"name": "id", | |
"type": "bytes32", | |
"indexed": true | |
}, | |
{ | |
"internalType": "address", | |
"name": "caller", | |
"type": "address", | |
"indexed": true | |
}, | |
{ | |
"internalType": "address", | |
"name": "borrower", | |
"type": "address", | |
"indexed": true | |
}, | |
{ | |
"internalType": "uint256", | |
"name": "repaidAssets", | |
"type": "uint256", | |
"indexed": false | |
}, | |
{ | |
"internalType": "uint256", | |
"name": "repaidShares", | |
"type": "uint256", | |
"indexed": false | |
}, | |
{ | |
"internalType": "uint256", | |
"name": "seizedAssets", | |
"type": "uint256", | |
"indexed": false | |
}, | |
{ | |
"internalType": "uint256", | |
"name": "badDebtShares", | |
"type": "uint256", | |
"indexed": false | |
} | |
], | |
"type": "event", | |
"name": "Liquidate", | |
"anonymous": false | |
}, | |
{ | |
"inputs": [ | |
{ | |
"internalType": "Id", | |
"name": "id", | |
"type": "bytes32", | |
"indexed": true | |
}, | |
{ | |
"internalType": "address", | |
"name": "caller", | |
"type": "address", | |
"indexed": true | |
}, | |
{ | |
"internalType": "address", | |
"name": "onBehalf", | |
"type": "address", | |
"indexed": true | |
}, | |
{ | |
"internalType": "uint256", | |
"name": "assets", | |
"type": "uint256", | |
"indexed": false | |
}, | |
{ | |
"internalType": "uint256", | |
"name": "shares", | |
"type": "uint256", | |
"indexed": false | |
} | |
], | |
"type": "event", | |
"name": "Repay", | |
"anonymous": false | |
}, | |
{ | |
"inputs": [ | |
{ | |
"internalType": "address", | |
"name": "caller", | |
"type": "address", | |
"indexed": true | |
}, | |
{ | |
"internalType": "address", | |
"name": "authorizer", | |
"type": "address", | |
"indexed": true | |
}, | |
{ | |
"internalType": "address", | |
"name": "authorized", | |
"type": "address", | |
"indexed": true | |
}, | |
{ | |
"internalType": "bool", | |
"name": "newIsAuthorized", | |
"type": "bool", | |
"indexed": false | |
} | |
], | |
"type": "event", | |
"name": "SetAuthorization", | |
"anonymous": false | |
}, | |
{ | |
"inputs": [ | |
{ | |
"internalType": "Id", | |
"name": "id", | |
"type": "bytes32", | |
"indexed": true | |
}, | |
{ | |
"internalType": "uint256", | |
"name": "newFee", | |
"type": "uint256", | |
"indexed": false | |
} | |
], | |
"type": "event", | |
"name": "SetFee", | |
"anonymous": false | |
}, | |
{ | |
"inputs": [ | |
{ | |
"internalType": "address", | |
"name": "newFeeRecipient", | |
"type": "address", | |
"indexed": true | |
} | |
], | |
"type": "event", | |
"name": "SetFeeRecipient", | |
"anonymous": false | |
}, | |
{ | |
"inputs": [ | |
{ | |
"internalType": "address", | |
"name": "newOwner", | |
"type": "address", | |
"indexed": true | |
} | |
], | |
"type": "event", | |
"name": "SetOwner", | |
"anonymous": false | |
}, | |
{ | |
"inputs": [ | |
{ | |
"internalType": "Id", | |
"name": "id", | |
"type": "bytes32", | |
"indexed": true | |
}, | |
{ | |
"internalType": "address", | |
"name": "caller", | |
"type": "address", | |
"indexed": true | |
}, | |
{ | |
"internalType": "address", | |
"name": "onBehalf", | |
"type": "address", | |
"indexed": true | |
}, | |
{ | |
"internalType": "uint256", | |
"name": "assets", | |
"type": "uint256", | |
"indexed": false | |
}, | |
{ | |
"internalType": "uint256", | |
"name": "shares", | |
"type": "uint256", | |
"indexed": false | |
} | |
], | |
"type": "event", | |
"name": "Supply", | |
"anonymous": false | |
}, | |
{ | |
"inputs": [ | |
{ | |
"internalType": "Id", | |
"name": "id", | |
"type": "bytes32", | |
"indexed": true | |
}, | |
{ | |
"internalType": "address", | |
"name": "caller", | |
"type": "address", | |
"indexed": true | |
}, | |
{ | |
"internalType": "address", | |
"name": "onBehalf", | |
"type": "address", | |
"indexed": true | |
}, | |
{ | |
"internalType": "uint256", | |
"name": "assets", | |
"type": "uint256", | |
"indexed": false | |
} | |
], | |
"type": "event", | |
"name": "SupplyCollateral", | |
"anonymous": false | |
}, | |
{ | |
"inputs": [ | |
{ | |
"internalType": "Id", | |
"name": "id", | |
"type": "bytes32", | |
"indexed": true | |
}, | |
{ | |
"internalType": "address", | |
"name": "caller", | |
"type": "address", | |
"indexed": false | |
}, | |
{ | |
"internalType": "address", | |
"name": "onBehalf", | |
"type": "address", | |
"indexed": true | |
}, | |
{ | |
"internalType": "address", | |
"name": "receiver", | |
"type": "address", | |
"indexed": true | |
}, | |
{ | |
"internalType": "uint256", | |
"name": "assets", | |
"type": "uint256", | |
"indexed": false | |
}, | |
{ | |
"internalType": "uint256", | |
"name": "shares", | |
"type": "uint256", | |
"indexed": false | |
} | |
], | |
"type": "event", | |
"name": "Withdraw", | |
"anonymous": false | |
}, | |
{ | |
"inputs": [ | |
{ | |
"internalType": "Id", | |
"name": "id", | |
"type": "bytes32", | |
"indexed": true | |
}, | |
{ | |
"internalType": "address", | |
"name": "caller", | |
"type": "address", | |
"indexed": false | |
}, | |
{ | |
"internalType": "address", | |
"name": "onBehalf", | |
"type": "address", | |
"indexed": true | |
}, | |
{ | |
"internalType": "address", | |
"name": "receiver", | |
"type": "address", | |
"indexed": true | |
}, | |
{ | |
"internalType": "uint256", | |
"name": "assets", | |
"type": "uint256", | |
"indexed": false | |
} | |
], | |
"type": "event", | |
"name": "WithdrawCollateral", | |
"anonymous": false | |
} | |
], | |
"devdoc": { | |
"kind": "dev", | |
"methods": {}, | |
"version": 1 | |
}, | |
"userdoc": { | |
"kind": "user", | |
"methods": {}, | |
"version": 1 | |
} | |
}, | |
"settings": { | |
"remappings": [ | |
"@morpho-blue/=/", | |
"ds-test/=lib/forge-std/lib/ds-test/src/", | |
"erc4626-tests/=lib/openzeppelin-contracts/lib/erc4626-tests/", | |
"eth-gas-reporter/=node_modules/eth-gas-reporter/", | |
"forge-std/=lib/forge-std/src/", | |
"hardhat/=node_modules/hardhat/", | |
"openzeppelin-contracts/=lib/openzeppelin-contracts/", | |
"openzeppelin/=lib/openzeppelin-contracts/contracts/", | |
"solmate/=lib/solmate/src/" | |
], | |
"optimizer": { | |
"enabled": true, | |
"runs": 4294967295 | |
}, | |
"metadata": { | |
"bytecodeHash": "ipfs" | |
}, | |
"compilationTarget": { | |
"src/libraries/EventsLib.sol": "EventsLib" | |
}, | |
"libraries": {}, | |
"viaIR": true | |
}, | |
"sources": { | |
"src/interfaces/IMorpho.sol": { | |
"keccak256": "0x77157c767415458ec490c572c2e57a1b4cc9a84b581ca1ebe27051a5ef76df69", | |
"urls": [ | |
"bzz-raw://cf5c60e4d1c61656230a54767efa2404256c4bbe97dbe9a07bab88aea44a51e3", | |
"dweb:/ipfs/QmSN472LYZNz6BbsHrY9UoPSgGvsaj33jiLoPk5A5yN71g" | |
], | |
"license": "GPL-2.0-or-later" | |
}, | |
"src/libraries/EventsLib.sol": { | |
"keccak256": "0x7f9f2e586c9957e48ffcddb8cc0573fc30e61d52ec4509e4bbb2b01135397ab9", | |
"urls": [ | |
"bzz-raw://fbce1aa3a93af726cfaa757f3c52bf05db6195978aed278fbb2f9b07492195b6", | |
"dweb:/ipfs/QmT2BrifKJsg1bYywGugCayXbAD6W9MwxoWqKjxCWu6P6G" | |
], | |
"license": "GPL-2.0-or-later" | |
} | |
}, | |
"version": 1 | |
}, | |
"ast": { | |
"absolutePath": "src/libraries/EventsLib.sol", | |
"id": 32983, | |
"exportedSymbols": { | |
"EventsLib": [ | |
32982 | |
], | |
"Id": [ | |
32252 | |
], | |
"MarketParams": [ | |
32263 | |
] | |
}, | |
"nodeType": "SourceUnit", | |
"src": "45:6021:31", | |
"nodes": [ | |
{ | |
"id": 32795, | |
"nodeType": "PragmaDirective", | |
"src": "45:23:31", | |
"nodes": [], | |
"literals": [ | |
"solidity", | |
"^", | |
"0.8", | |
".0" | |
] | |
}, | |
{ | |
"id": 32798, | |
"nodeType": "ImportDirective", | |
"src": "70:59:31", | |
"nodes": [], | |
"absolutePath": "src/interfaces/IMorpho.sol", | |
"file": "../interfaces/IMorpho.sol", | |
"nameLocation": "-1:-1:-1", | |
"scope": 32983, | |
"sourceUnit": 32606, | |
"symbolAliases": [ | |
{ | |
"foreign": { | |
"id": 32796, | |
"name": "Id", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 32252, | |
"src": "78:2:31", | |
"typeDescriptions": {} | |
}, | |
"nameLocation": "-1:-1:-1" | |
}, | |
{ | |
"foreign": { | |
"id": 32797, | |
"name": "MarketParams", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 32263, | |
"src": "82:12:31", | |
"typeDescriptions": {} | |
}, | |
"nameLocation": "-1:-1:-1" | |
} | |
], | |
"unitAlias": "" | |
}, | |
{ | |
"id": 32982, | |
"nodeType": "ContractDefinition", | |
"src": "253:5812:31", | |
"nodes": [ | |
{ | |
"id": 32804, | |
"nodeType": "EventDefinition", | |
"src": "382:41:31", | |
"nodes": [], | |
"anonymous": false, | |
"documentation": { | |
"id": 32800, | |
"nodeType": "StructuredDocumentation", | |
"src": "277:100:31", | |
"text": "@notice Emitted when setting a new owner.\n @param newOwner The new owner of the contract." | |
}, | |
"eventSelector": "167d3e9c1016ab80e58802ca9da10ce5c6a0f4debc46a2e7a2cd9e56899a4fb5", | |
"name": "SetOwner", | |
"nameLocation": "388:8:31", | |
"parameters": { | |
"id": 32803, | |
"nodeType": "ParameterList", | |
"parameters": [ | |
{ | |
"constant": false, | |
"id": 32802, | |
"indexed": true, | |
"mutability": "mutable", | |
"name": "newOwner", | |
"nameLocation": "413:8:31", | |
"nodeType": "VariableDeclaration", | |
"scope": 32804, | |
"src": "397:24:31", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
}, | |
"typeName": { | |
"id": 32801, | |
"name": "address", | |
"nodeType": "ElementaryTypeName", | |
"src": "397:7:31", | |
"stateMutability": "nonpayable", | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
} | |
}, | |
"visibility": "internal" | |
} | |
], | |
"src": "396:26:31" | |
} | |
}, | |
{ | |
"id": 32812, | |
"nodeType": "EventDefinition", | |
"src": "545:44:31", | |
"nodes": [], | |
"anonymous": false, | |
"documentation": { | |
"id": 32805, | |
"nodeType": "StructuredDocumentation", | |
"src": "429:111:31", | |
"text": "@notice Emitted when setting a new fee.\n @param id The market id.\n @param newFee The new fee." | |
}, | |
"eventSelector": "139d6f58e9a127229667c8e3b36e88890a66cfc8ab1024ddc513e189e125b75b", | |
"name": "SetFee", | |
"nameLocation": "551:6:31", | |
"parameters": { | |
"id": 32811, | |
"nodeType": "ParameterList", | |
"parameters": [ | |
{ | |
"constant": false, | |
"id": 32808, | |
"indexed": true, | |
"mutability": "mutable", | |
"name": "id", | |
"nameLocation": "569:2:31", | |
"nodeType": "VariableDeclaration", | |
"scope": 32812, | |
"src": "558:13:31", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_userDefinedValueType$_Id_$32252", | |
"typeString": "Id" | |
}, | |
"typeName": { | |
"id": 32807, | |
"nodeType": "UserDefinedTypeName", | |
"pathNode": { | |
"id": 32806, | |
"name": "Id", | |
"nameLocations": [ | |
"558:2:31" | |
], | |
"nodeType": "IdentifierPath", | |
"referencedDeclaration": 32252, | |
"src": "558:2:31" | |
}, | |
"referencedDeclaration": 32252, | |
"src": "558:2:31", | |
"typeDescriptions": { | |
"typeIdentifier": "t_userDefinedValueType$_Id_$32252", | |
"typeString": "Id" | |
} | |
}, | |
"visibility": "internal" | |
}, | |
{ | |
"constant": false, | |
"id": 32810, | |
"indexed": false, | |
"mutability": "mutable", | |
"name": "newFee", | |
"nameLocation": "581:6:31", | |
"nodeType": "VariableDeclaration", | |
"scope": 32812, | |
"src": "573:14:31", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
"typeName": { | |
"id": 32809, | |
"name": "uint256", | |
"nodeType": "ElementaryTypeName", | |
"src": "573:7:31", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"visibility": "internal" | |
} | |
], | |
"src": "557:31:31" | |
} | |
}, | |
{ | |
"id": 32817, | |
"nodeType": "EventDefinition", | |
"src": "707:55:31", | |
"nodes": [], | |
"anonymous": false, | |
"documentation": { | |
"id": 32813, | |
"nodeType": "StructuredDocumentation", | |
"src": "595:107:31", | |
"text": "@notice Emitted when setting a new fee recipient.\n @param newFeeRecipient The new fee recipient." | |
}, | |
"eventSelector": "2e979f80fe4d43055c584cf4a8467c55875ea36728fc37176c05acd784eb7a73", | |
"name": "SetFeeRecipient", | |
"nameLocation": "713:15:31", | |
"parameters": { | |
"id": 32816, | |
"nodeType": "ParameterList", | |
"parameters": [ | |
{ | |
"constant": false, | |
"id": 32815, | |
"indexed": true, | |
"mutability": "mutable", | |
"name": "newFeeRecipient", | |
"nameLocation": "745:15:31", | |
"nodeType": "VariableDeclaration", | |
"scope": 32817, | |
"src": "729:31:31", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
}, | |
"typeName": { | |
"id": 32814, | |
"name": "address", | |
"nodeType": "ElementaryTypeName", | |
"src": "729:7:31", | |
"stateMutability": "nonpayable", | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
} | |
}, | |
"visibility": "internal" | |
} | |
], | |
"src": "728:33:31" | |
} | |
}, | |
{ | |
"id": 32822, | |
"nodeType": "EventDefinition", | |
"src": "859:37:31", | |
"nodes": [], | |
"anonymous": false, | |
"documentation": { | |
"id": 32818, | |
"nodeType": "StructuredDocumentation", | |
"src": "768:86:31", | |
"text": "@notice Emitted when enabling an IRM.\n @param irm The IRM that was enabled." | |
}, | |
"eventSelector": "590e04cdebeccba40f566186b9746ad295a4cd358ea4fefaaea6ce79630d96c0", | |
"name": "EnableIrm", | |
"nameLocation": "865:9:31", | |
"parameters": { | |
"id": 32821, | |
"nodeType": "ParameterList", | |
"parameters": [ | |
{ | |
"constant": false, | |
"id": 32820, | |
"indexed": true, | |
"mutability": "mutable", | |
"name": "irm", | |
"nameLocation": "891:3:31", | |
"nodeType": "VariableDeclaration", | |
"scope": 32822, | |
"src": "875:19:31", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
}, | |
"typeName": { | |
"id": 32819, | |
"name": "address", | |
"nodeType": "ElementaryTypeName", | |
"src": "875:7:31", | |
"stateMutability": "nonpayable", | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
} | |
}, | |
"visibility": "internal" | |
} | |
], | |
"src": "874:21:31" | |
} | |
}, | |
{ | |
"id": 32827, | |
"nodeType": "EventDefinition", | |
"src": "996:31:31", | |
"nodes": [], | |
"anonymous": false, | |
"documentation": { | |
"id": 32823, | |
"nodeType": "StructuredDocumentation", | |
"src": "902:89:31", | |
"text": "@notice Emitted when enabling an LLTV.\n @param lltv The LLTV that was enabled." | |
}, | |
"eventSelector": "297b80e7a896fad470c630f6575072d609bde997260ff3db851939405ec29139", | |
"name": "EnableLltv", | |
"nameLocation": "1002:10:31", | |
"parameters": { | |
"id": 32826, | |
"nodeType": "ParameterList", | |
"parameters": [ | |
{ | |
"constant": false, | |
"id": 32825, | |
"indexed": false, | |
"mutability": "mutable", | |
"name": "lltv", | |
"nameLocation": "1021:4:31", | |
"nodeType": "VariableDeclaration", | |
"scope": 32827, | |
"src": "1013:12:31", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
"typeName": { | |
"id": 32824, | |
"name": "uint256", | |
"nodeType": "ElementaryTypeName", | |
"src": "1013:7:31", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"visibility": "internal" | |
} | |
], | |
"src": "1012:14:31" | |
} | |
}, | |
{ | |
"id": 32836, | |
"nodeType": "EventDefinition", | |
"src": "1171:61:31", | |
"nodes": [], | |
"anonymous": false, | |
"documentation": { | |
"id": 32828, | |
"nodeType": "StructuredDocumentation", | |
"src": "1033:133:31", | |
"text": "@notice Emitted when creating a market.\n @param id The market id.\n @param marketParams The market that was created." | |
}, | |
"eventSelector": "ac4b2400f169220b0c0afdde7a0b32e775ba727ea1cb30b35f935cdaab8683ac", | |
"name": "CreateMarket", | |
"nameLocation": "1177:12:31", | |
"parameters": { | |
"id": 32835, | |
"nodeType": "ParameterList", | |
"parameters": [ | |
{ | |
"constant": false, | |
"id": 32831, | |
"indexed": true, | |
"mutability": "mutable", | |
"name": "id", | |
"nameLocation": "1201:2:31", | |
"nodeType": "VariableDeclaration", | |
"scope": 32836, | |
"src": "1190:13:31", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_userDefinedValueType$_Id_$32252", | |
"typeString": "Id" | |
}, | |
"typeName": { | |
"id": 32830, | |
"nodeType": "UserDefinedTypeName", | |
"pathNode": { | |
"id": 32829, | |
"name": "Id", | |
"nameLocations": [ | |
"1190:2:31" | |
], | |
"nodeType": "IdentifierPath", | |
"referencedDeclaration": 32252, | |
"src": "1190:2:31" | |
}, | |
"referencedDeclaration": 32252, | |
"src": "1190:2:31", | |
"typeDescriptions": { | |
"typeIdentifier": "t_userDefinedValueType$_Id_$32252", | |
"typeString": "Id" | |
} | |
}, | |
"visibility": "internal" | |
}, | |
{ | |
"constant": false, | |
"id": 32834, | |
"indexed": false, | |
"mutability": "mutable", | |
"name": "marketParams", | |
"nameLocation": "1218:12:31", | |
"nodeType": "VariableDeclaration", | |
"scope": 32836, | |
"src": "1205:25:31", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_struct$_MarketParams_$32263_memory_ptr", | |
"typeString": "struct MarketParams" | |
}, | |
"typeName": { | |
"id": 32833, | |
"nodeType": "UserDefinedTypeName", | |
"pathNode": { | |
"id": 32832, | |
"name": "MarketParams", | |
"nameLocations": [ | |
"1205:12:31" | |
], | |
"nodeType": "IdentifierPath", | |
"referencedDeclaration": 32263, | |
"src": "1205:12:31" | |
}, | |
"referencedDeclaration": 32263, | |
"src": "1205:12:31", | |
"typeDescriptions": { | |
"typeIdentifier": "t_struct$_MarketParams_$32263_storage_ptr", | |
"typeString": "struct MarketParams" | |
} | |
}, | |
"visibility": "internal" | |
} | |
], | |
"src": "1189:42:31" | |
} | |
}, | |
{ | |
"id": 32850, | |
"nodeType": "EventDefinition", | |
"src": "1516:110:31", | |
"nodes": [], | |
"anonymous": false, | |
"documentation": { | |
"id": 32837, | |
"nodeType": "StructuredDocumentation", | |
"src": "1238:273:31", | |
"text": "@notice Emitted on supply of assets.\n @param id The market id.\n @param caller The caller.\n @param onBehalf The address that received the supply.\n @param assets The amount of assets supplied.\n @param shares The amount of shares minted." | |
}, | |
"eventSelector": "edf8870433c83823eb071d3df1caa8d008f12f6440918c20d75a3602cda30fe0", | |
"name": "Supply", | |
"nameLocation": "1522:6:31", | |
"parameters": { | |
"id": 32849, | |
"nodeType": "ParameterList", | |
"parameters": [ | |
{ | |
"constant": false, | |
"id": 32840, | |
"indexed": true, | |
"mutability": "mutable", | |
"name": "id", | |
"nameLocation": "1540:2:31", | |
"nodeType": "VariableDeclaration", | |
"scope": 32850, | |
"src": "1529:13:31", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_userDefinedValueType$_Id_$32252", | |
"typeString": "Id" | |
}, | |
"typeName": { | |
"id": 32839, | |
"nodeType": "UserDefinedTypeName", | |
"pathNode": { | |
"id": 32838, | |
"name": "Id", | |
"nameLocations": [ | |
"1529:2:31" | |
], | |
"nodeType": "IdentifierPath", | |
"referencedDeclaration": 32252, | |
"src": "1529:2:31" | |
}, | |
"referencedDeclaration": 32252, | |
"src": "1529:2:31", | |
"typeDescriptions": { | |
"typeIdentifier": "t_userDefinedValueType$_Id_$32252", | |
"typeString": "Id" | |
} | |
}, | |
"visibility": "internal" | |
}, | |
{ | |
"constant": false, | |
"id": 32842, | |
"indexed": true, | |
"mutability": "mutable", | |
"name": "caller", | |
"nameLocation": "1560:6:31", | |
"nodeType": "VariableDeclaration", | |
"scope": 32850, | |
"src": "1544:22:31", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
}, | |
"typeName": { | |
"id": 32841, | |
"name": "address", | |
"nodeType": "ElementaryTypeName", | |
"src": "1544:7:31", | |
"stateMutability": "nonpayable", | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
} | |
}, | |
"visibility": "internal" | |
}, | |
{ | |
"constant": false, | |
"id": 32844, | |
"indexed": true, | |
"mutability": "mutable", | |
"name": "onBehalf", | |
"nameLocation": "1584:8:31", | |
"nodeType": "VariableDeclaration", | |
"scope": 32850, | |
"src": "1568:24:31", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
}, | |
"typeName": { | |
"id": 32843, | |
"name": "address", | |
"nodeType": "ElementaryTypeName", | |
"src": "1568:7:31", | |
"stateMutability": "nonpayable", | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
} | |
}, | |
"visibility": "internal" | |
}, | |
{ | |
"constant": false, | |
"id": 32846, | |
"indexed": false, | |
"mutability": "mutable", | |
"name": "assets", | |
"nameLocation": "1602:6:31", | |
"nodeType": "VariableDeclaration", | |
"scope": 32850, | |
"src": "1594:14:31", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
"typeName": { | |
"id": 32845, | |
"name": "uint256", | |
"nodeType": "ElementaryTypeName", | |
"src": "1594:7:31", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"visibility": "internal" | |
}, | |
{ | |
"constant": false, | |
"id": 32848, | |
"indexed": false, | |
"mutability": "mutable", | |
"name": "shares", | |
"nameLocation": "1618:6:31", | |
"nodeType": "VariableDeclaration", | |
"scope": 32850, | |
"src": "1610:14:31", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
"typeName": { | |
"id": 32847, | |
"name": "uint256", | |
"nodeType": "ElementaryTypeName", | |
"src": "1610:7:31", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"visibility": "internal" | |
} | |
], | |
"src": "1528:97:31" | |
} | |
}, | |
{ | |
"id": 32866, | |
"nodeType": "EventDefinition", | |
"src": "1999:184:31", | |
"nodes": [], | |
"anonymous": false, | |
"documentation": { | |
"id": 32851, | |
"nodeType": "StructuredDocumentation", | |
"src": "1632:362:31", | |
"text": "@notice Emitted on withdrawal of assets.\n @param id The market id.\n @param caller The caller.\n @param onBehalf The address from which the assets were withdrawn.\n @param receiver The address that received the withdrawn assets.\n @param assets The amount of assets withdrawn.\n @param shares The amount of shares burned." | |
}, | |
"eventSelector": "a56fc0ad5702ec05ce63666221f796fb62437c32db1aa1aa075fc6484cf58fbf", | |
"name": "Withdraw", | |
"nameLocation": "2005:8:31", | |
"parameters": { | |
"id": 32865, | |
"nodeType": "ParameterList", | |
"parameters": [ | |
{ | |
"constant": false, | |
"id": 32854, | |
"indexed": true, | |
"mutability": "mutable", | |
"name": "id", | |
"nameLocation": "2034:2:31", | |
"nodeType": "VariableDeclaration", | |
"scope": 32866, | |
"src": "2023:13:31", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_userDefinedValueType$_Id_$32252", | |
"typeString": "Id" | |
}, | |
"typeName": { | |
"id": 32853, | |
"nodeType": "UserDefinedTypeName", | |
"pathNode": { | |
"id": 32852, | |
"name": "Id", | |
"nameLocations": [ | |
"2023:2:31" | |
], | |
"nodeType": "IdentifierPath", | |
"referencedDeclaration": 32252, | |
"src": "2023:2:31" | |
}, | |
"referencedDeclaration": 32252, | |
"src": "2023:2:31", | |
"typeDescriptions": { | |
"typeIdentifier": "t_userDefinedValueType$_Id_$32252", | |
"typeString": "Id" | |
} | |
}, | |
"visibility": "internal" | |
}, | |
{ | |
"constant": false, | |
"id": 32856, | |
"indexed": false, | |
"mutability": "mutable", | |
"name": "caller", | |
"nameLocation": "2054:6:31", | |
"nodeType": "VariableDeclaration", | |
"scope": 32866, | |
"src": "2046:14:31", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
}, | |
"typeName": { | |
"id": 32855, | |
"name": "address", | |
"nodeType": "ElementaryTypeName", | |
"src": "2046:7:31", | |
"stateMutability": "nonpayable", | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
} | |
}, | |
"visibility": "internal" | |
}, | |
{ | |
"constant": false, | |
"id": 32858, | |
"indexed": true, | |
"mutability": "mutable", | |
"name": "onBehalf", | |
"nameLocation": "2086:8:31", | |
"nodeType": "VariableDeclaration", | |
"scope": 32866, | |
"src": "2070:24:31", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
}, | |
"typeName": { | |
"id": 32857, | |
"name": "address", | |
"nodeType": "ElementaryTypeName", | |
"src": "2070:7:31", | |
"stateMutability": "nonpayable", | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
} | |
}, | |
"visibility": "internal" | |
}, | |
{ | |
"constant": false, | |
"id": 32860, | |
"indexed": true, | |
"mutability": "mutable", | |
"name": "receiver", | |
"nameLocation": "2120:8:31", | |
"nodeType": "VariableDeclaration", | |
"scope": 32866, | |
"src": "2104:24:31", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
}, | |
"typeName": { | |
"id": 32859, | |
"name": "address", | |
"nodeType": "ElementaryTypeName", | |
"src": "2104:7:31", | |
"stateMutability": "nonpayable", | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
} | |
}, | |
"visibility": "internal" | |
}, | |
{ | |
"constant": false, | |
"id": 32862, | |
"indexed": false, | |
"mutability": "mutable", | |
"name": "assets", | |
"nameLocation": "2146:6:31", | |
"nodeType": "VariableDeclaration", | |
"scope": 32866, | |
"src": "2138:14:31", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
"typeName": { | |
"id": 32861, | |
"name": "uint256", | |
"nodeType": "ElementaryTypeName", | |
"src": "2138:7:31", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"visibility": "internal" | |
}, | |
{ | |
"constant": false, | |
"id": 32864, | |
"indexed": false, | |
"mutability": "mutable", | |
"name": "shares", | |
"nameLocation": "2170:6:31", | |
"nodeType": "VariableDeclaration", | |
"scope": 32866, | |
"src": "2162:14:31", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
"typeName": { | |
"id": 32863, | |
"name": "uint256", | |
"nodeType": "ElementaryTypeName", | |
"src": "2162:7:31", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"visibility": "internal" | |
} | |
], | |
"src": "2013:169:31" | |
} | |
}, | |
{ | |
"id": 32882, | |
"nodeType": "EventDefinition", | |
"src": "2549:182:31", | |
"nodes": [], | |
"anonymous": false, | |
"documentation": { | |
"id": 32867, | |
"nodeType": "StructuredDocumentation", | |
"src": "2189:355:31", | |
"text": "@notice Emitted on borrow of assets.\n @param id The market id.\n @param caller The caller.\n @param onBehalf The address from which the assets were borrowed.\n @param receiver The address that received the borrowed assets.\n @param assets The amount of assets borrowed.\n @param shares The amount of shares minted." | |
}, | |
"eventSelector": "570954540bed6b1304a87dfe815a5eda4a648f7097a16240dcd85c9b5fd42a43", | |
"name": "Borrow", | |
"nameLocation": "2555:6:31", | |
"parameters": { | |
"id": 32881, | |
"nodeType": "ParameterList", | |
"parameters": [ | |
{ | |
"constant": false, | |
"id": 32870, | |
"indexed": true, | |
"mutability": "mutable", | |
"name": "id", | |
"nameLocation": "2582:2:31", | |
"nodeType": "VariableDeclaration", | |
"scope": 32882, | |
"src": "2571:13:31", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_userDefinedValueType$_Id_$32252", | |
"typeString": "Id" | |
}, | |
"typeName": { | |
"id": 32869, | |
"nodeType": "UserDefinedTypeName", | |
"pathNode": { | |
"id": 32868, | |
"name": "Id", | |
"nameLocations": [ | |
"2571:2:31" | |
], | |
"nodeType": "IdentifierPath", | |
"referencedDeclaration": 32252, | |
"src": "2571:2:31" | |
}, | |
"referencedDeclaration": 32252, | |
"src": "2571:2:31", | |
"typeDescriptions": { | |
"typeIdentifier": "t_userDefinedValueType$_Id_$32252", | |
"typeString": "Id" | |
} | |
}, | |
"visibility": "internal" | |
}, | |
{ | |
"constant": false, | |
"id": 32872, | |
"indexed": false, | |
"mutability": "mutable", | |
"name": "caller", | |
"nameLocation": "2602:6:31", | |
"nodeType": "VariableDeclaration", | |
"scope": 32882, | |
"src": "2594:14:31", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
}, | |
"typeName": { | |
"id": 32871, | |
"name": "address", | |
"nodeType": "ElementaryTypeName", | |
"src": "2594:7:31", | |
"stateMutability": "nonpayable", | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
} | |
}, | |
"visibility": "internal" | |
}, | |
{ | |
"constant": false, | |
"id": 32874, | |
"indexed": true, | |
"mutability": "mutable", | |
"name": "onBehalf", | |
"nameLocation": "2634:8:31", | |
"nodeType": "VariableDeclaration", | |
"scope": 32882, | |
"src": "2618:24:31", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
}, | |
"typeName": { | |
"id": 32873, | |
"name": "address", | |
"nodeType": "ElementaryTypeName", | |
"src": "2618:7:31", | |
"stateMutability": "nonpayable", | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
} | |
}, | |
"visibility": "internal" | |
}, | |
{ | |
"constant": false, | |
"id": 32876, | |
"indexed": true, | |
"mutability": "mutable", | |
"name": "receiver", | |
"nameLocation": "2668:8:31", | |
"nodeType": "VariableDeclaration", | |
"scope": 32882, | |
"src": "2652:24:31", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
}, | |
"typeName": { | |
"id": 32875, | |
"name": "address", | |
"nodeType": "ElementaryTypeName", | |
"src": "2652:7:31", | |
"stateMutability": "nonpayable", | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
} | |
}, | |
"visibility": "internal" | |
}, | |
{ | |
"constant": false, | |
"id": 32878, | |
"indexed": false, | |
"mutability": "mutable", | |
"name": "assets", | |
"nameLocation": "2694:6:31", | |
"nodeType": "VariableDeclaration", | |
"scope": 32882, | |
"src": "2686:14:31", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
"typeName": { | |
"id": 32877, | |
"name": "uint256", | |
"nodeType": "ElementaryTypeName", | |
"src": "2686:7:31", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"visibility": "internal" | |
}, | |
{ | |
"constant": false, | |
"id": 32880, | |
"indexed": false, | |
"mutability": "mutable", | |
"name": "shares", | |
"nameLocation": "2718:6:31", | |
"nodeType": "VariableDeclaration", | |
"scope": 32882, | |
"src": "2710:14:31", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
"typeName": { | |
"id": 32879, | |
"name": "uint256", | |
"nodeType": "ElementaryTypeName", | |
"src": "2710:7:31", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"visibility": "internal" | |
} | |
], | |
"src": "2561:169:31" | |
} | |
}, | |
{ | |
"id": 32896, | |
"nodeType": "EventDefinition", | |
"src": "3086:109:31", | |
"nodes": [], | |
"anonymous": false, | |
"documentation": { | |
"id": 32883, | |
"nodeType": "StructuredDocumentation", | |
"src": "2737:344:31", | |
"text": "@notice Emitted on repayment of assets.\n @param id The market id.\n @param caller The caller.\n @param onBehalf The address for which the assets were repaid.\n @param assets The amount of assets repaid. May be 1 over the corresponding market's `totalBorrowAssets`.\n @param shares The amount of shares burned." | |
}, | |
"eventSelector": "52acb05cebbd3cd39715469f22afbf5a17496295ef3bc9bb5944056c63ccaa09", | |
"name": "Repay", | |
"nameLocation": "3092:5:31", | |
"parameters": { | |
"id": 32895, | |
"nodeType": "ParameterList", | |
"parameters": [ | |
{ | |
"constant": false, | |
"id": 32886, | |
"indexed": true, | |
"mutability": "mutable", | |
"name": "id", | |
"nameLocation": "3109:2:31", | |
"nodeType": "VariableDeclaration", | |
"scope": 32896, | |
"src": "3098:13:31", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_userDefinedValueType$_Id_$32252", | |
"typeString": "Id" | |
}, | |
"typeName": { | |
"id": 32885, | |
"nodeType": "UserDefinedTypeName", | |
"pathNode": { | |
"id": 32884, | |
"name": "Id", | |
"nameLocations": [ | |
"3098:2:31" | |
], | |
"nodeType": "IdentifierPath", | |
"referencedDeclaration": 32252, | |
"src": "3098:2:31" | |
}, | |
"referencedDeclaration": 32252, | |
"src": "3098:2:31", | |
"typeDescriptions": { | |
"typeIdentifier": "t_userDefinedValueType$_Id_$32252", | |
"typeString": "Id" | |
} | |
}, | |
"visibility": "internal" | |
}, | |
{ | |
"constant": false, | |
"id": 32888, | |
"indexed": true, | |
"mutability": "mutable", | |
"name": "caller", | |
"nameLocation": "3129:6:31", | |
"nodeType": "VariableDeclaration", | |
"scope": 32896, | |
"src": "3113:22:31", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
}, | |
"typeName": { | |
"id": 32887, | |
"name": "address", | |
"nodeType": "ElementaryTypeName", | |
"src": "3113:7:31", | |
"stateMutability": "nonpayable", | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
} | |
}, | |
"visibility": "internal" | |
}, | |
{ | |
"constant": false, | |
"id": 32890, | |
"indexed": true, | |
"mutability": "mutable", | |
"name": "onBehalf", | |
"nameLocation": "3153:8:31", | |
"nodeType": "VariableDeclaration", | |
"scope": 32896, | |
"src": "3137:24:31", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
}, | |
"typeName": { | |
"id": 32889, | |
"name": "address", | |
"nodeType": "ElementaryTypeName", | |
"src": "3137:7:31", | |
"stateMutability": "nonpayable", | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
} | |
}, | |
"visibility": "internal" | |
}, | |
{ | |
"constant": false, | |
"id": 32892, | |
"indexed": false, | |
"mutability": "mutable", | |
"name": "assets", | |
"nameLocation": "3171:6:31", | |
"nodeType": "VariableDeclaration", | |
"scope": 32896, | |
"src": "3163:14:31", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
"typeName": { | |
"id": 32891, | |
"name": "uint256", | |
"nodeType": "ElementaryTypeName", | |
"src": "3163:7:31", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"visibility": "internal" | |
}, | |
{ | |
"constant": false, | |
"id": 32894, | |
"indexed": false, | |
"mutability": "mutable", | |
"name": "shares", | |
"nameLocation": "3187:6:31", | |
"nodeType": "VariableDeclaration", | |
"scope": 32896, | |
"src": "3179:14:31", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
"typeName": { | |
"id": 32893, | |
"name": "uint256", | |
"nodeType": "ElementaryTypeName", | |
"src": "3179:7:31", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"visibility": "internal" | |
} | |
], | |
"src": "3097:97:31" | |
} | |
}, | |
{ | |
"id": 32908, | |
"nodeType": "EventDefinition", | |
"src": "3440:104:31", | |
"nodes": [], | |
"anonymous": false, | |
"documentation": { | |
"id": 32897, | |
"nodeType": "StructuredDocumentation", | |
"src": "3201:234:31", | |
"text": "@notice Emitted on supply of collateral.\n @param id The market id.\n @param caller The caller.\n @param onBehalf The address that received the collateral.\n @param assets The amount of collateral supplied." | |
}, | |
"eventSelector": "a3b9472a1399e17e123f3c2e6586c23e504184d504de59cdaa2b375e880c6184", | |
"name": "SupplyCollateral", | |
"nameLocation": "3446:16:31", | |
"parameters": { | |
"id": 32907, | |
"nodeType": "ParameterList", | |
"parameters": [ | |
{ | |
"constant": false, | |
"id": 32900, | |
"indexed": true, | |
"mutability": "mutable", | |
"name": "id", | |
"nameLocation": "3474:2:31", | |
"nodeType": "VariableDeclaration", | |
"scope": 32908, | |
"src": "3463:13:31", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_userDefinedValueType$_Id_$32252", | |
"typeString": "Id" | |
}, | |
"typeName": { | |
"id": 32899, | |
"nodeType": "UserDefinedTypeName", | |
"pathNode": { | |
"id": 32898, | |
"name": "Id", | |
"nameLocations": [ | |
"3463:2:31" | |
], | |
"nodeType": "IdentifierPath", | |
"referencedDeclaration": 32252, | |
"src": "3463:2:31" | |
}, | |
"referencedDeclaration": 32252, | |
"src": "3463:2:31", | |
"typeDescriptions": { | |
"typeIdentifier": "t_userDefinedValueType$_Id_$32252", | |
"typeString": "Id" | |
} | |
}, | |
"visibility": "internal" | |
}, | |
{ | |
"constant": false, | |
"id": 32902, | |
"indexed": true, | |
"mutability": "mutable", | |
"name": "caller", | |
"nameLocation": "3494:6:31", | |
"nodeType": "VariableDeclaration", | |
"scope": 32908, | |
"src": "3478:22:31", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
}, | |
"typeName": { | |
"id": 32901, | |
"name": "address", | |
"nodeType": "ElementaryTypeName", | |
"src": "3478:7:31", | |
"stateMutability": "nonpayable", | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
} | |
}, | |
"visibility": "internal" | |
}, | |
{ | |
"constant": false, | |
"id": 32904, | |
"indexed": true, | |
"mutability": "mutable", | |
"name": "onBehalf", | |
"nameLocation": "3518:8:31", | |
"nodeType": "VariableDeclaration", | |
"scope": 32908, | |
"src": "3502:24:31", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
}, | |
"typeName": { | |
"id": 32903, | |
"name": "address", | |
"nodeType": "ElementaryTypeName", | |
"src": "3502:7:31", | |
"stateMutability": "nonpayable", | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
} | |
}, | |
"visibility": "internal" | |
}, | |
{ | |
"constant": false, | |
"id": 32906, | |
"indexed": false, | |
"mutability": "mutable", | |
"name": "assets", | |
"nameLocation": "3536:6:31", | |
"nodeType": "VariableDeclaration", | |
"scope": 32908, | |
"src": "3528:14:31", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
"typeName": { | |
"id": 32905, | |
"name": "uint256", | |
"nodeType": "ElementaryTypeName", | |
"src": "3528:7:31", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"visibility": "internal" | |
} | |
], | |
"src": "3462:81:31" | |
} | |
}, | |
{ | |
"id": 32922, | |
"nodeType": "EventDefinition", | |
"src": "3881:138:31", | |
"nodes": [], | |
"anonymous": false, | |
"documentation": { | |
"id": 32909, | |
"nodeType": "StructuredDocumentation", | |
"src": "3550:326:31", | |
"text": "@notice Emitted on withdrawal of collateral.\n @param id The market id.\n @param caller The caller.\n @param onBehalf The address from which the collateral was withdrawn.\n @param receiver The address that received the withdrawn collateral.\n @param assets The amount of collateral withdrawn." | |
}, | |
"eventSelector": "e80ebd7cc9223d7382aab2e0d1d6155c65651f83d53c8b9b06901d167e321142", | |
"name": "WithdrawCollateral", | |
"nameLocation": "3887:18:31", | |
"parameters": { | |
"id": 32921, | |
"nodeType": "ParameterList", | |
"parameters": [ | |
{ | |
"constant": false, | |
"id": 32912, | |
"indexed": true, | |
"mutability": "mutable", | |
"name": "id", | |
"nameLocation": "3926:2:31", | |
"nodeType": "VariableDeclaration", | |
"scope": 32922, | |
"src": "3915:13:31", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_userDefinedValueType$_Id_$32252", | |
"typeString": "Id" | |
}, | |
"typeName": { | |
"id": 32911, | |
"nodeType": "UserDefinedTypeName", | |
"pathNode": { | |
"id": 32910, | |
"name": "Id", | |
"nameLocations": [ | |
"3915:2:31" | |
], | |
"nodeType": "IdentifierPath", | |
"referencedDeclaration": 32252, | |
"src": "3915:2:31" | |
}, | |
"referencedDeclaration": 32252, | |
"src": "3915:2:31", | |
"typeDescriptions": { | |
"typeIdentifier": "t_userDefinedValueType$_Id_$32252", | |
"typeString": "Id" | |
} | |
}, | |
"visibility": "internal" | |
}, | |
{ | |
"constant": false, | |
"id": 32914, | |
"indexed": false, | |
"mutability": "mutable", | |
"name": "caller", | |
"nameLocation": "3938:6:31", | |
"nodeType": "VariableDeclaration", | |
"scope": 32922, | |
"src": "3930:14:31", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
}, | |
"typeName": { | |
"id": 32913, | |
"name": "address", | |
"nodeType": "ElementaryTypeName", | |
"src": "3930:7:31", | |
"stateMutability": "nonpayable", | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
} | |
}, | |
"visibility": "internal" | |
}, | |
{ | |
"constant": false, | |
"id": 32916, | |
"indexed": true, | |
"mutability": "mutable", | |
"name": "onBehalf", | |
"nameLocation": "3962:8:31", | |
"nodeType": "VariableDeclaration", | |
"scope": 32922, | |
"src": "3946:24:31", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
}, | |
"typeName": { | |
"id": 32915, | |
"name": "address", | |
"nodeType": "ElementaryTypeName", | |
"src": "3946:7:31", | |
"stateMutability": "nonpayable", | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
} | |
}, | |
"visibility": "internal" | |
}, | |
{ | |
"constant": false, | |
"id": 32918, | |
"indexed": true, | |
"mutability": "mutable", | |
"name": "receiver", | |
"nameLocation": "3988:8:31", | |
"nodeType": "VariableDeclaration", | |
"scope": 32922, | |
"src": "3972:24:31", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
}, | |
"typeName": { | |
"id": 32917, | |
"name": "address", | |
"nodeType": "ElementaryTypeName", | |
"src": "3972:7:31", | |
"stateMutability": "nonpayable", | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
} | |
}, | |
"visibility": "internal" | |
}, | |
{ | |
"constant": false, | |
"id": 32920, | |
"indexed": false, | |
"mutability": "mutable", | |
"name": "assets", | |
"nameLocation": "4006:6:31", | |
"nodeType": "VariableDeclaration", | |
"scope": 32922, | |
"src": "3998:14:31", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
"typeName": { | |
"id": 32919, | |
"name": "uint256", | |
"nodeType": "ElementaryTypeName", | |
"src": "3998:7:31", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"visibility": "internal" | |
} | |
], | |
"src": "3905:113:31" | |
} | |
}, | |
{ | |
"id": 32940, | |
"nodeType": "EventDefinition", | |
"src": "4507:232:31", | |
"nodes": [], | |
"anonymous": false, | |
"documentation": { | |
"id": 32923, | |
"nodeType": "StructuredDocumentation", | |
"src": "4025:477:31", | |
"text": "@notice Emitted on liquidation of a position.\n @param id The market id.\n @param caller The caller.\n @param borrower The borrower of the position.\n @param repaidAssets The amount of assets repaid. May be 1 over the corresponding market's `totalBorrowAssets`.\n @param repaidShares The amount of shares burned.\n @param seizedAssets The amount of collateral seized.\n @param badDebtShares The amount of shares minted as bad debt." | |
}, | |
"eventSelector": "2a956e32ed8787cac03e680198b6ce3dcfb819aad578b3a5658f2c110a7d7c55", | |
"name": "Liquidate", | |
"nameLocation": "4513:9:31", | |
"parameters": { | |
"id": 32939, | |
"nodeType": "ParameterList", | |
"parameters": [ | |
{ | |
"constant": false, | |
"id": 32926, | |
"indexed": true, | |
"mutability": "mutable", | |
"name": "id", | |
"nameLocation": "4543:2:31", | |
"nodeType": "VariableDeclaration", | |
"scope": 32940, | |
"src": "4532:13:31", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_userDefinedValueType$_Id_$32252", | |
"typeString": "Id" | |
}, | |
"typeName": { | |
"id": 32925, | |
"nodeType": "UserDefinedTypeName", | |
"pathNode": { | |
"id": 32924, | |
"name": "Id", | |
"nameLocations": [ | |
"4532:2:31" | |
], | |
"nodeType": "IdentifierPath", | |
"referencedDeclaration": 32252, | |
"src": "4532:2:31" | |
}, | |
"referencedDeclaration": 32252, | |
"src": "4532:2:31", | |
"typeDescriptions": { | |
"typeIdentifier": "t_userDefinedValueType$_Id_$32252", | |
"typeString": "Id" | |
} | |
}, | |
"visibility": "internal" | |
}, | |
{ | |
"constant": false, | |
"id": 32928, | |
"indexed": true, | |
"mutability": "mutable", | |
"name": "caller", | |
"nameLocation": "4571:6:31", | |
"nodeType": "VariableDeclaration", | |
"scope": 32940, | |
"src": "4555:22:31", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
}, | |
"typeName": { | |
"id": 32927, | |
"name": "address", | |
"nodeType": "ElementaryTypeName", | |
"src": "4555:7:31", | |
"stateMutability": "nonpayable", | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
} | |
}, | |
"visibility": "internal" | |
}, | |
{ | |
"constant": false, | |
"id": 32930, | |
"indexed": true, | |
"mutability": "mutable", | |
"name": "borrower", | |
"nameLocation": "4603:8:31", | |
"nodeType": "VariableDeclaration", | |
"scope": 32940, | |
"src": "4587:24:31", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
}, | |
"typeName": { | |
"id": 32929, | |
"name": "address", | |
"nodeType": "ElementaryTypeName", | |
"src": "4587:7:31", | |
"stateMutability": "nonpayable", | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
} | |
}, | |
"visibility": "internal" | |
}, | |
{ | |
"constant": false, | |
"id": 32932, | |
"indexed": false, | |
"mutability": "mutable", | |
"name": "repaidAssets", | |
"nameLocation": "4629:12:31", | |
"nodeType": "VariableDeclaration", | |
"scope": 32940, | |
"src": "4621:20:31", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
"typeName": { | |
"id": 32931, | |
"name": "uint256", | |
"nodeType": "ElementaryTypeName", | |
"src": "4621:7:31", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"visibility": "internal" | |
}, | |
{ | |
"constant": false, | |
"id": 32934, | |
"indexed": false, | |
"mutability": "mutable", | |
"name": "repaidShares", | |
"nameLocation": "4659:12:31", | |
"nodeType": "VariableDeclaration", | |
"scope": 32940, | |
"src": "4651:20:31", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
"typeName": { | |
"id": 32933, | |
"name": "uint256", | |
"nodeType": "ElementaryTypeName", | |
"src": "4651:7:31", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"visibility": "internal" | |
}, | |
{ | |
"constant": false, | |
"id": 32936, | |
"indexed": false, | |
"mutability": "mutable", | |
"name": "seizedAssets", | |
"nameLocation": "4689:12:31", | |
"nodeType": "VariableDeclaration", | |
"scope": 32940, | |
"src": "4681:20:31", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
"typeName": { | |
"id": 32935, | |
"name": "uint256", | |
"nodeType": "ElementaryTypeName", | |
"src": "4681:7:31", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"visibility": "internal" | |
}, | |
{ | |
"constant": false, | |
"id": 32938, | |
"indexed": false, | |
"mutability": "mutable", | |
"name": "badDebtShares", | |
"nameLocation": "4719:13:31", | |
"nodeType": "VariableDeclaration", | |
"scope": 32940, | |
"src": "4711:21:31", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
"typeName": { | |
"id": 32937, | |
"name": "uint256", | |
"nodeType": "ElementaryTypeName", | |
"src": "4711:7:31", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"visibility": "internal" | |
} | |
], | |
"src": "4522:216:31" | |
} | |
}, | |
{ | |
"id": 32949, | |
"nodeType": "EventDefinition", | |
"src": "4928:79:31", | |
"nodes": [], | |
"anonymous": false, | |
"documentation": { | |
"id": 32941, | |
"nodeType": "StructuredDocumentation", | |
"src": "4745:178:31", | |
"text": "@notice Emitted on flash loan.\n @param caller The caller.\n @param token The token that was flash loaned.\n @param assets The amount that was flash loaned." | |
}, | |
"eventSelector": "c76f1b4fe4396ac07a9fa55a415d4ca430e72651d37d3401f3bed7cb13fc4f12", | |
"name": "FlashLoan", | |
"nameLocation": "4934:9:31", | |
"parameters": { | |
"id": 32948, | |
"nodeType": "ParameterList", | |
"parameters": [ | |
{ | |
"constant": false, | |
"id": 32943, | |
"indexed": true, | |
"mutability": "mutable", | |
"name": "caller", | |
"nameLocation": "4960:6:31", | |
"nodeType": "VariableDeclaration", | |
"scope": 32949, | |
"src": "4944:22:31", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
}, | |
"typeName": { | |
"id": 32942, | |
"name": "address", | |
"nodeType": "ElementaryTypeName", | |
"src": "4944:7:31", | |
"stateMutability": "nonpayable", | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
} | |
}, | |
"visibility": "internal" | |
}, | |
{ | |
"constant": false, | |
"id": 32945, | |
"indexed": true, | |
"mutability": "mutable", | |
"name": "token", | |
"nameLocation": "4984:5:31", | |
"nodeType": "VariableDeclaration", | |
"scope": 32949, | |
"src": "4968:21:31", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
}, | |
"typeName": { | |
"id": 32944, | |
"name": "address", | |
"nodeType": "ElementaryTypeName", | |
"src": "4968:7:31", | |
"stateMutability": "nonpayable", | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
} | |
}, | |
"visibility": "internal" | |
}, | |
{ | |
"constant": false, | |
"id": 32947, | |
"indexed": false, | |
"mutability": "mutable", | |
"name": "assets", | |
"nameLocation": "4999:6:31", | |
"nodeType": "VariableDeclaration", | |
"scope": 32949, | |
"src": "4991:14:31", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
"typeName": { | |
"id": 32946, | |
"name": "uint256", | |
"nodeType": "ElementaryTypeName", | |
"src": "4991:7:31", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"visibility": "internal" | |
} | |
], | |
"src": "4943:63:31" | |
} | |
}, | |
{ | |
"id": 32960, | |
"nodeType": "EventDefinition", | |
"src": "5263:139:31", | |
"nodes": [], | |
"anonymous": false, | |
"documentation": { | |
"id": 32950, | |
"nodeType": "StructuredDocumentation", | |
"src": "5013:245:31", | |
"text": "@notice Emitted when setting an authorization.\n @param caller The caller.\n @param authorizer The authorizer address.\n @param authorized The authorized address.\n @param newIsAuthorized The new authorization status." | |
}, | |
"eventSelector": "d5e969f01efe921d3f766bdebad25f0a05e3f237311f56482bf132d0326309c0", | |
"name": "SetAuthorization", | |
"nameLocation": "5269:16:31", | |
"parameters": { | |
"id": 32959, | |
"nodeType": "ParameterList", | |
"parameters": [ | |
{ | |
"constant": false, | |
"id": 32952, | |
"indexed": true, | |
"mutability": "mutable", | |
"name": "caller", | |
"nameLocation": "5311:6:31", | |
"nodeType": "VariableDeclaration", | |
"scope": 32960, | |
"src": "5295:22:31", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
}, | |
"typeName": { | |
"id": 32951, | |
"name": "address", | |
"nodeType": "ElementaryTypeName", | |
"src": "5295:7:31", | |
"stateMutability": "nonpayable", | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
} | |
}, | |
"visibility": "internal" | |
}, | |
{ | |
"constant": false, | |
"id": 32954, | |
"indexed": true, | |
"mutability": "mutable", | |
"name": "authorizer", | |
"nameLocation": "5335:10:31", | |
"nodeType": "VariableDeclaration", | |
"scope": 32960, | |
"src": "5319:26:31", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
}, | |
"typeName": { | |
"id": 32953, | |
"name": "address", | |
"nodeType": "ElementaryTypeName", | |
"src": "5319:7:31", | |
"stateMutability": "nonpayable", | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
} | |
}, | |
"visibility": "internal" | |
}, | |
{ | |
"constant": false, | |
"id": 32956, | |
"indexed": true, | |
"mutability": "mutable", | |
"name": "authorized", | |
"nameLocation": "5363:10:31", | |
"nodeType": "VariableDeclaration", | |
"scope": 32960, | |
"src": "5347:26:31", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
}, | |
"typeName": { | |
"id": 32955, | |
"name": "address", | |
"nodeType": "ElementaryTypeName", | |
"src": "5347:7:31", | |
"stateMutability": "nonpayable", | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
} | |
}, | |
"visibility": "internal" | |
}, | |
{ | |
"constant": false, | |
"id": 32958, | |
"indexed": false, | |
"mutability": "mutable", | |
"name": "newIsAuthorized", | |
"nameLocation": "5380:15:31", | |
"nodeType": "VariableDeclaration", | |
"scope": 32960, | |
"src": "5375:20:31", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_bool", | |
"typeString": "bool" | |
}, | |
"typeName": { | |
"id": 32957, | |
"name": "bool", | |
"nodeType": "ElementaryTypeName", | |
"src": "5375:4:31", | |
"typeDescriptions": { | |
"typeIdentifier": "t_bool", | |
"typeString": "bool" | |
} | |
}, | |
"visibility": "internal" | |
} | |
], | |
"src": "5285:116:31" | |
} | |
}, | |
{ | |
"id": 32969, | |
"nodeType": "EventDefinition", | |
"src": "5614:92:31", | |
"nodes": [], | |
"anonymous": false, | |
"documentation": { | |
"id": 32961, | |
"nodeType": "StructuredDocumentation", | |
"src": "5408:201:31", | |
"text": "@notice Emitted when setting an authorization with a signature.\n @param caller The caller.\n @param authorizer The authorizer address.\n @param usedNonce The nonce that was used." | |
}, | |
"eventSelector": "a58af1a0c70dba0c7aa60d1a1a147ebd61000d1690a968828ac718bca927f2c7", | |
"name": "IncrementNonce", | |
"nameLocation": "5620:14:31", | |
"parameters": { | |
"id": 32968, | |
"nodeType": "ParameterList", | |
"parameters": [ | |
{ | |
"constant": false, | |
"id": 32963, | |
"indexed": true, | |
"mutability": "mutable", | |
"name": "caller", | |
"nameLocation": "5651:6:31", | |
"nodeType": "VariableDeclaration", | |
"scope": 32969, | |
"src": "5635:22:31", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
}, | |
"typeName": { | |
"id": 32962, | |
"name": "address", | |
"nodeType": "ElementaryTypeName", | |
"src": "5635:7:31", | |
"stateMutability": "nonpayable", | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
} | |
}, | |
"visibility": "internal" | |
}, | |
{ | |
"constant": false, | |
"id": 32965, | |
"indexed": true, | |
"mutability": "mutable", | |
"name": "authorizer", | |
"nameLocation": "5675:10:31", | |
"nodeType": "VariableDeclaration", | |
"scope": 32969, | |
"src": "5659:26:31", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
}, | |
"typeName": { | |
"id": 32964, | |
"name": "address", | |
"nodeType": "ElementaryTypeName", | |
"src": "5659:7:31", | |
"stateMutability": "nonpayable", | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
} | |
}, | |
"visibility": "internal" | |
}, | |
{ | |
"constant": false, | |
"id": 32967, | |
"indexed": false, | |
"mutability": "mutable", | |
"name": "usedNonce", | |
"nameLocation": "5695:9:31", | |
"nodeType": "VariableDeclaration", | |
"scope": 32969, | |
"src": "5687:17:31", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
"typeName": { | |
"id": 32966, | |
"name": "uint256", | |
"nodeType": "ElementaryTypeName", | |
"src": "5687:7:31", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"visibility": "internal" | |
} | |
], | |
"src": "5634:71:31" | |
} | |
}, | |
{ | |
"id": 32981, | |
"nodeType": "EventDefinition", | |
"src": "5966:97:31", | |
"nodes": [], | |
"anonymous": false, | |
"documentation": { | |
"id": 32970, | |
"nodeType": "StructuredDocumentation", | |
"src": "5712:249:31", | |
"text": "@notice Emitted when accruing interest.\n @param id The market id.\n @param prevBorrowRate The previous borrow rate.\n @param interest The amount of interest accrued.\n @param feeShares The amount of shares minted as fee." | |
}, | |
"eventSelector": "9d9bd501d0657d7dfe415f779a620a62b78bc508ddc0891fbbd8b7ac0f8fce87", | |
"name": "AccrueInterest", | |
"nameLocation": "5972:14:31", | |
"parameters": { | |
"id": 32980, | |
"nodeType": "ParameterList", | |
"parameters": [ | |
{ | |
"constant": false, | |
"id": 32973, | |
"indexed": true, | |
"mutability": "mutable", | |
"name": "id", | |
"nameLocation": "5998:2:31", | |
"nodeType": "VariableDeclaration", | |
"scope": 32981, | |
"src": "5987:13:31", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_userDefinedValueType$_Id_$32252", | |
"typeString": "Id" | |
}, | |
"typeName": { | |
"id": 32972, | |
"nodeType": "UserDefinedTypeName", | |
"pathNode": { | |
"id": 32971, | |
"name": "Id", | |
"nameLocations": [ | |
"5987:2:31" | |
], | |
"nodeType": "IdentifierPath", | |
"referencedDeclaration": 32252, | |
"src": "5987:2:31" | |
}, | |
"referencedDeclaration": 32252, | |
"src": "5987:2:31", | |
"typeDescriptions": { | |
"typeIdentifier": "t_userDefinedValueType$_Id_$32252", | |
"typeString": "Id" | |
} | |
}, | |
"visibility": "internal" | |
}, | |
{ | |
"constant": false, | |
"id": 32975, | |
"indexed": false, | |
"mutability": "mutable", | |
"name": "prevBorrowRate", | |
"nameLocation": "6010:14:31", | |
"nodeType": "VariableDeclaration", | |
"scope": 32981, | |
"src": "6002:22:31", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
"typeName": { | |
"id": 32974, | |
"name": "uint256", | |
"nodeType": "ElementaryTypeName", | |
"src": "6002:7:31", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"visibility": "internal" | |
}, | |
{ | |
"constant": false, | |
"id": 32977, | |
"indexed": false, | |
"mutability": "mutable", | |
"name": "interest", | |
"nameLocation": "6034:8:31", | |
"nodeType": "VariableDeclaration", | |
"scope": 32981, | |
"src": "6026:16:31", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
"typeName": { | |
"id": 32976, | |
"name": "uint256", | |
"nodeType": "ElementaryTypeName", | |
"src": "6026:7:31", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"visibility": "internal" | |
}, | |
{ | |
"constant": false, | |
"id": 32979, | |
"indexed": false, | |
"mutability": "mutable", | |
"name": "feeShares", | |
"nameLocation": "6052:9:31", | |
"nodeType": "VariableDeclaration", | |
"scope": 32981, | |
"src": "6044:17:31", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
"typeName": { | |
"id": 32978, | |
"name": "uint256", | |
"nodeType": "ElementaryTypeName", | |
"src": "6044:7:31", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"visibility": "internal" | |
} | |
], | |
"src": "5986:76:31" | |
} | |
} | |
], | |
"abstract": false, | |
"baseContracts": [], | |
"canonicalName": "EventsLib", | |
"contractDependencies": [], | |
"contractKind": "library", | |
"documentation": { | |
"id": 32799, | |
"nodeType": "StructuredDocumentation", | |
"src": "131:122:31", | |
"text": "@title EventsLib\n @author Morpho Labs\n @custom:contact security@morpho.org\n @notice Library exposing events." | |
}, | |
"fullyImplemented": true, | |
"linearizedBaseContracts": [ | |
32982 | |
], | |
"name": "EventsLib", | |
"nameLocation": "261:9:31", | |
"scope": 32983, | |
"usedErrors": [] | |
} | |
], | |
"license": "GPL-2.0-or-later" | |
}, | |
"id": 31 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment