Skip to content

Commit

Permalink
Merge pull request #45 from neptune-mutual-blue/updates/abi-docs
Browse files Browse the repository at this point in the history
Updates
  • Loading branch information
binpmxstn committed Apr 10, 2022
2 parents 9bd3f92 + fb302ee commit 5ab27cd
Show file tree
Hide file tree
Showing 158 changed files with 1,161 additions and 317 deletions.
19 changes: 19 additions & 0 deletions abis/ICoverReassurance.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,25 @@
"name": "ReassuranceAdded",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "bytes32",
"name": "key",
"type": "bytes32"
},
{
"indexed": false,
"internalType": "uint256",
"name": "weight",
"type": "uint256"
}
],
"name": "WeightSet",
"type": "event"
},
{
"inputs": [
{
Expand Down
70 changes: 69 additions & 1 deletion abis/IGovernance.json
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,74 @@
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes32",
"name": "key",
"type": "bytes32"
},
{
"internalType": "address",
"name": "who",
"type": "address"
},
{
"internalType": "uint256",
"name": "incidentDate",
"type": "uint256"
}
],
"name": "getAttestation",
"outputs": [
{
"internalType": "uint256",
"name": "myStake",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "totalStake",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes32",
"name": "key",
"type": "bytes32"
},
{
"internalType": "address",
"name": "who",
"type": "address"
},
{
"internalType": "uint256",
"name": "incidentDate",
"type": "uint256"
}
],
"name": "getDispute",
"outputs": [
{
"internalType": "uint256",
"name": "myStake",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "totalStake",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
Expand Down Expand Up @@ -345,7 +413,7 @@
"type": "bytes32"
}
],
"name": "getResolutionDate",
"name": "getResolutionTimestamp",
"outputs": [
{
"internalType": "uint256",
Expand Down
69 changes: 69 additions & 0 deletions abis/ILiquidityEngine.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "bytes32",
"name": "coverKey",
"type": "bytes32"
},
{
"indexed": false,
"internalType": "uint256",
Expand Down Expand Up @@ -31,6 +37,19 @@
"name": "LiquidityStateUpdateIntervalSet",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "uint256",
"name": "ratio",
"type": "uint256"
}
],
"name": "MaxLendingRatioSet",
"type": "event"
},
{
"anonymous": false,
"inputs": [
Expand Down Expand Up @@ -109,6 +128,43 @@
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes32",
"name": "coverKey",
"type": "bytes32"
}
],
"name": "getLendingPeriods",
"outputs": [
{
"internalType": "uint256",
"name": "lendingPeriod",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "withdrawalWindow",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "getMaxLendingRatio",
"outputs": [
{
"internalType": "uint256",
"name": "ratio",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "getName",
Expand Down Expand Up @@ -176,6 +232,19 @@
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "ratio",
"type": "uint256"
}
],
"name": "setMaxLendingRatio",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "version",
Expand Down
22 changes: 22 additions & 0 deletions abis/IPolicy.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,18 @@
"internalType": "uint256",
"name": "expiresOn",
"type": "uint256"
},
{
"indexed": true,
"internalType": "bytes32",
"name": "referralCode",
"type": "bytes32"
},
{
"indexed": false,
"internalType": "uint256",
"name": "policyId",
"type": "uint256"
}
],
"name": "CoverPurchased",
Expand Down Expand Up @@ -259,6 +271,11 @@
"internalType": "uint256",
"name": "amountToCover",
"type": "uint256"
},
{
"internalType": "bytes32",
"name": "referralCode",
"type": "bytes32"
}
],
"name": "purchaseCover",
Expand All @@ -267,6 +284,11 @@
"internalType": "address",
"name": "",
"type": "address"
},
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "nonpayable",
Expand Down
70 changes: 69 additions & 1 deletion abis/IReporter.json
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,74 @@
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes32",
"name": "key",
"type": "bytes32"
},
{
"internalType": "address",
"name": "who",
"type": "address"
},
{
"internalType": "uint256",
"name": "incidentDate",
"type": "uint256"
}
],
"name": "getAttestation",
"outputs": [
{
"internalType": "uint256",
"name": "myStake",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "totalStake",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes32",
"name": "key",
"type": "bytes32"
},
{
"internalType": "address",
"name": "who",
"type": "address"
},
{
"internalType": "uint256",
"name": "incidentDate",
"type": "uint256"
}
],
"name": "getDispute",
"outputs": [
{
"internalType": "uint256",
"name": "myStake",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "totalStake",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
Expand Down Expand Up @@ -247,7 +315,7 @@
"type": "bytes32"
}
],
"name": "getResolutionDate",
"name": "getResolutionTimestamp",
"outputs": [
{
"internalType": "uint256",
Expand Down
11 changes: 11 additions & 0 deletions abis/IVault.json
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,12 @@
"internalType": "uint256",
"name": "liquidityAdded",
"type": "uint256"
},
{
"indexed": true,
"internalType": "bytes32",
"name": "referralCode",
"type": "bytes32"
}
],
"name": "PodsIssued",
Expand Down Expand Up @@ -341,6 +347,11 @@
"internalType": "uint256",
"name": "npmStake",
"type": "uint256"
},
{
"internalType": "bytes32",
"name": "referralCode",
"type": "bytes32"
}
],
"name": "addLiquidity",
Expand Down
2 changes: 1 addition & 1 deletion contracts/core/token/Delayable.sol
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ contract Delayable is TimelockController, WithRecovery {
uint256 minDelay,
address[] memory proposers,
address[] memory executors
) TimelockController(minDelay, proposers, executors) {}
) TimelockController(minDelay, proposers, executors) {} // solhint-disable-line
}
2 changes: 1 addition & 1 deletion contracts/libraries/PriceLibV1.sol
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ library PriceLibV1 {
uint256 reserve1 = values[1];
uint256 supply = values[2];

require(supply > 0, "Invalid pair or price not updated");
require(supply > 0, "Invalid pair or price not updated"); // solhint-disable-line

address stablecoin = s.getStablecoin();

Expand Down
2 changes: 1 addition & 1 deletion contracts/mock/MockFlashBorrower.sol
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ contract MockFlashBorrower is IERC3156FlashBorrower {
bytes calldata /*data*/
) external view override returns (bytes32) {
require(msg.sender == address(_provider), "FlashBorrower: Untrusted lender");
require(initiator == address(this), "FlashBorrower: Untrusted loan initiator");
require(initiator == address(this), "FlashBorrower: Untrusted loan initiator"); // solhint-disable-line
return _returnValue;
}
}
1 change: 1 addition & 0 deletions docs/AaveStrategy.md
Original file line number Diff line number Diff line change
Expand Up @@ -562,6 +562,7 @@ function getName() public pure override returns (bytes32) {
* [MockProcessorStore](MockProcessorStore.md)
* [MockProcessorStoreLib](MockProcessorStoreLib.md)
* [MockProtocol](MockProtocol.md)
* [MockRegistryClient](MockRegistryClient.md)
* [MockStore](MockStore.md)
* [MockVault](MockVault.md)
* [NPM](NPM.md)
Expand Down
1 change: 1 addition & 0 deletions docs/AccessControl.md
Original file line number Diff line number Diff line change
Expand Up @@ -518,6 +518,7 @@ function _revokeRole(bytes32 role, address account) internal virtual {
* [MockProcessorStore](MockProcessorStore.md)
* [MockProcessorStoreLib](MockProcessorStoreLib.md)
* [MockProtocol](MockProtocol.md)
* [MockRegistryClient](MockRegistryClient.md)
* [MockStore](MockStore.md)
* [MockVault](MockVault.md)
* [NPM](NPM.md)
Expand Down
Loading

0 comments on commit 5ab27cd

Please sign in to comment.