2.8.3 • Published 29 days ago

@ensuro/extensions v2.8.3

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
29 days ago

Ensuro Extensions

This package contains several extension / utility contracts to be used with the Ensuro Protocol.

Try running some of the following tasks:

npx hardhat help
npx hardhat test
GAS_REPORT=true npx hardhat test

CashFlowLender

The objective of this contract is to support the operation of some partners that receive the money of the premiums several weeks after the policy was sold. This contract lends the money to pay the premiums while keeping the ownership of the policies as collateral. When there's a payout, it retains the funds up to cover the debt and releases the remaining to a previously configured address.

QuadrataWhitelist

This is an implementation of LPManualWhitelist with an additional endpoint that verifies a Quadrata passport before whitelisting a new provider.

The supported roles are:

  • LP_WHITELIST_ROLE: Can whitelist providers bypassing quadrata's check
  • QUADRATA_WHITELIST_ROLE: Can whitelist providers that have a quadrata passport with the required attributes
  • LP_WHITELIST_ADMIN_ROLE: Can change the contract settings and perform upgrades
  • DEFAULT_ADMIN_ROLE: Can grant roles to addresses

Checkout Quadrata's docs for the available attributes.

Checkout the method _validateRequiredAttribute for attributes with special validations.

2.8.3

29 days ago

2.8.2

1 month ago

2.8.1-beta6

1 month ago

2.8.1-beta2

1 month ago

2.8.1-beta3

1 month ago

2.8.1-beta4

1 month ago

2.8.1-beta5

1 month ago

2.8.1-beta1

1 month ago

2.8.0

2 months ago

2.7.2

4 months ago

2.7.1

5 months ago

2.3.2

9 months ago

2.3.1

11 months ago

2.7.0

7 months ago

2.6.1

7 months ago

2.6.0

9 months ago

2.3.0

11 months ago

0.3.1

11 months ago

0.3.0

1 year ago

0.2.2

1 year ago

0.2.1

1 year ago