Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@ensuro/extensions

Package Overview
Dependencies
Maintainers
3
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ensuro/extensions

Extension contracts that operate with the Ensuro Protocol

  • 2.8.2
  • Source
  • npm
  • Socket score

Version published
Maintainers
3
Created
Source

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.

Keywords

FAQs

Package last updated on 16 Apr 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc