#
LibSimplePolicy
#
Functions
#
_getSimplePolicyInfo
function _getSimplePolicyInfo(bytes32 _policyId) internal view returns (SimplePolicy memory simplePolicyInfo);
#
_checkAndUpdateState
function _checkAndUpdateState(bytes32 _policyId) internal;
#
_payPremium
function _payPremium(bytes32 _payerEntityId, bytes32 _policyId, uint256 _amount) internal;
#
_payClaim
function _payClaim(bytes32 _claimId, bytes32 _policyId, bytes32 _insuredEntityId, uint256 _amount) internal;
#
_cancel
function _cancel(bytes32 _policyId) internal;
#
releaseFunds
function releaseFunds(bytes32 _policyId) private;
#
_getSigningHash
function _getSigningHash(
uint256 _startDate,
uint256 _maturationDate,
bytes32 _asset,
uint256 _limit,
bytes32 _offchainDataHash
) internal view returns (bytes32);
#
Events
#
SimplePolicyMatured
event SimplePolicyMatured(bytes32 indexed id);
#
SimplePolicyCancelled
event SimplePolicyCancelled(bytes32 indexed id);
#
SimplePolicyPremiumPaid
event SimplePolicyPremiumPaid(bytes32 indexed id, uint256 amount);
#
SimplePolicyClaimPaid
event SimplePolicyClaimPaid(
bytes32 indexed claimId, bytes32 indexed policyId, bytes32 indexed insuredId, uint256 amount
);