View Source: contracts/interfaces/IClaimsProcessor.sol
↗ Extends: IMember ↘ Derived Contracts: Processor
IClaimsProcessor
Events
event Claimed(address cxToken, bytes32 indexed coverKey, bytes32 indexed productKey, uint256 incidentDate, address indexed account, address reporter, uint256 amount, uint256 reporterFee, uint256 platformFee, uint256 claimed);
event ClaimPeriodSet(bytes32 indexed coverKey, uint256 previous, uint256 current);
event BlacklistSet(bytes32 indexed coverKey, bytes32 indexed productKey, uint256 indexed incidentDate, address account, bool status);
- claim(address cxToken, bytes32 coverKey, bytes32 productKey, uint256 incidentDate, uint256 amount)
- validate(address cxToken, bytes32 coverKey, bytes32 productKey, uint256 incidentDate, uint256 amount)
- setClaimPeriod(bytes32 coverKey, uint256 value)
- getClaimExpiryDate(bytes32 coverKey, bytes32 productKey)
- setBlacklist(bytes32 coverKey, bytes32 productKey, uint256 incidentDate, address[] accounts, bool[] statuses)
- isBlacklisted(bytes32 coverKey, bytes32 productKey, uint256 incidentDate, address account)
function claim(address cxToken, bytes32 coverKey, bytes32 productKey, uint256 incidentDate, uint256 amount) external nonpayable
Arguments
Name | Type | Description |
---|---|---|
cxToken | address | |
coverKey | bytes32 | |
productKey | bytes32 | |
incidentDate | uint256 | |
amount | uint256 |
Source Code
function claim(
address cxToken,
bytes32 coverKey,
bytes32 productKey,
uint256 incidentDate,
uint256 amount
) external;
function validate(address cxToken, bytes32 coverKey, bytes32 productKey, uint256 incidentDate, uint256 amount) external view
returns(bool)
Arguments
Name | Type | Description |
---|---|---|
cxToken | address | |
coverKey | bytes32 | |
productKey | bytes32 | |
incidentDate | uint256 | |
amount | uint256 |
Source Code
function validate(
address cxToken,
bytes32 coverKey,
bytes32 productKey,
uint256 incidentDate,
uint256 amount
) external view returns (bool);
function setClaimPeriod(bytes32 coverKey, uint256 value) external nonpayable
Arguments
Name | Type | Description |
---|---|---|
coverKey | bytes32 | |
value | uint256 |
Source Code
function setClaimPeriod(bytes32 coverKey, uint256 value) external;
function getClaimExpiryDate(bytes32 coverKey, bytes32 productKey) external view
returns(uint256)
Arguments
Name | Type | Description |
---|---|---|
coverKey | bytes32 | |
productKey | bytes32 |
Source Code
function getClaimExpiryDate(bytes32 coverKey, bytes32 productKey) external view returns (uint256);
function setBlacklist(bytes32 coverKey, bytes32 productKey, uint256 incidentDate, address[] accounts, bool[] statuses) external nonpayable
Arguments
Name | Type | Description |
---|---|---|
coverKey | bytes32 | |
productKey | bytes32 | |
incidentDate | uint256 | |
accounts | address[] | |
statuses | bool[] |
Source Code
function setBlacklist(
bytes32 coverKey,
bytes32 productKey,
uint256 incidentDate,
address[] calldata accounts,
bool[] calldata statuses
) external;
function isBlacklisted(bytes32 coverKey, bytes32 productKey, uint256 incidentDate, address account) external view
returns(bool)
Arguments
Name | Type | Description |
---|---|---|
coverKey | bytes32 | |
productKey | bytes32 | |
incidentDate | uint256 | |
account | address |
Source Code
function isBlacklisted(
bytes32 coverKey,
bytes32 productKey,
uint256 incidentDate,
address account
) external view returns (bool);
- AaveStrategy
- AccessControl
- AccessControlLibV1
- Address
- BaseLibV1
- BokkyPooBahsDateTimeLibrary
- BondPool
- BondPoolBase
- BondPoolLibV1
- CompoundStrategy
- Context
- Cover
- CoverBase
- CoverLibV1
- CoverReassurance
- CoverStake
- CoverUtilV1
- cxToken
- cxTokenFactory
- cxTokenFactoryLibV1
- Delayable
- Destroyable
- ERC165
- ERC20
- FakeAaveLendingPool
- FakeCompoundStablecoinDelegator
- FakePriceOracle
- FakeRecoverable
- FakeStore
- FakeToken
- FakeUniswapPair
- FakeUniswapV2FactoryLike
- FakeUniswapV2PairLike
- FakeUniswapV2RouterLike
- FaultyAaveLendingPool
- FaultyCompoundStablecoinDelegator
- Finalization
- ForceEther
- Governance
- GovernanceUtilV1
- IAaveV2LendingPoolLike
- IAccessControl
- IBondPool
- IClaimsProcessor
- ICompoundERC20DelegatorLike
- ICover
- ICoverReassurance
- ICoverStake
- ICxToken
- ICxTokenFactory
- IERC165
- IERC20
- IERC20Detailed
- IERC20Metadata
- IERC3156FlashBorrower
- IERC3156FlashLender
- IFinalization
- IGovernance
- ILendingStrategy
- ILiquidityEngine
- IMember
- INeptuneRouterV1
- InvalidStrategy
- IPausable
- IPolicy
- IPolicyAdmin
- IPriceOracle
- IProtocol
- IRecoverable
- IReporter
- IResolution
- IResolvable
- IStakingPools
- IStore
- IStoreLike
- IUniswapV2FactoryLike
- IUniswapV2PairLike
- IUniswapV2RouterLike
- IUnstakable
- IVault
- IVaultDelegate
- IVaultFactory
- IWitness
- LiquidityEngine
- MaliciousToken
- MockAccessControlUser
- MockCoverUtilUser
- MockCxToken
- MockCxTokenPolicy
- MockCxTokenStore
- MockFlashBorrower
- MockLiquidityEngineUser
- MockProcessorStore
- MockProcessorStoreLib
- MockProtocol
- MockRegistryClient
- MockStore
- MockStoreKeyUtilUser
- MockValidationLibUser
- MockVault
- MockVaultLibUser
- NeptuneRouterV1
- NPM
- NpmDistributor
- NTransferUtilV2
- NTransferUtilV2Intermediate
- Ownable
- Pausable
- Policy
- PolicyAdmin
- PolicyHelperV1
- PoorMansERC20
- POT
- PriceLibV1
- Processor
- ProtoBase
- Protocol
- ProtoUtilV1
- Recoverable
- ReentrancyGuard
- RegistryLibV1
- Reporter
- Resolution
- Resolvable
- RoutineInvokerLibV1
- SafeERC20
- StakingPoolBase
- StakingPoolCoreLibV1
- StakingPoolInfo
- StakingPoolLibV1
- StakingPoolReward
- StakingPools
- Store
- StoreBase
- StoreKeyUtil
- StrategyLibV1
- Strings
- TimelockController
- Unstakable
- ValidationLibV1
- Vault
- VaultBase
- VaultDelegate
- VaultDelegateBase
- VaultDelegateWithFlashLoan
- VaultFactory
- VaultFactoryLibV1
- VaultLibV1
- VaultLiquidity
- VaultStrategy
- WithFlashLoan
- WithPausability
- WithRecovery
- Witness