Skip to content

Commit

Permalink
minor bugfix and some event renamings
Browse files Browse the repository at this point in the history
  • Loading branch information
matthiaszimmermann committed Jul 11, 2022
1 parent 673aac3 commit 21bfa88
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 8 deletions.
2 changes: 1 addition & 1 deletion contracts/components/Oracle.sol
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
// SPDX-License-Identifier: Apache-2.0
pragma solidity ^0.8.0;

import "./IOracle.sol";
import "./Component.sol";
import "./IComponent.sol";
import "./IOracle.sol";
import "../services/IOracleService.sol";

abstract contract Oracle is
Expand Down
16 changes: 10 additions & 6 deletions contracts/modules/IPolicy.sol
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ pragma solidity ^0.8.0;

interface IPolicy {
// Events
event LogNewMetadata(
event LogMetadataCreated(
address owner,
bytes32 processId,
uint256 productId,
Expand All @@ -15,7 +15,7 @@ interface IPolicy {
PolicyFlowState state
);

event LogNewApplication(
event LogApplicationCreated(
bytes32 processId,
uint256 premiumAmount,
uint256 sumInsuredAmount
Expand All @@ -26,14 +26,14 @@ interface IPolicy {
ApplicationState state
);

event LogNewPolicy(bytes32 processId);
event LogPolicyCreated(bytes32 processId);

event LogPolicyStateChanged(
bytes32 processId,
PolicyState state
);

event LogNewClaim(
event LogClaimCreated(
bytes32 processId,
uint256 claimId,
ClaimState state
Expand All @@ -45,7 +45,7 @@ interface IPolicy {
ClaimState state
);

event LogNewPayout(
event LogPayoutCreated(
bytes32 processId,
uint256 claimId,
uint256 payoutId,
Expand Down Expand Up @@ -154,7 +154,11 @@ interface IPolicy {
function setPolicyState(bytes32 processId, IPolicy.PolicyState state)
external;

function createClaim(bytes32 processId, bytes calldata data)
function createClaim(
bytes32 processId,
uint256 claimAmount,
bytes calldata data
)
external
returns (uint256 claimId);

Expand Down
2 changes: 1 addition & 1 deletion contracts/modules/IPool.sol
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ pragma solidity ^0.8.0;
interface IPool {

event LogRiskpoolCollateralizationFailed(uint256 riskpoolId, bytes32 processId, uint256 amount);
event LogRiskpoolCollateralizationSucceed(uint256 riskpoolId, bytes32 processId, uint256 amount);
event LogRiskpoolCollateralizationSucceeded(uint256 riskpoolId, bytes32 processId, uint256 amount);

function setRiskpoolForProduct(uint256 productId, uint256 riskpoolId) external;
function underwrite(bytes32 processId) external returns(bool success);
Expand Down

0 comments on commit 21bfa88

Please sign in to comment.