New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@atpar/actus-solidity

Package Overview
Dependencies
Maintainers
3
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@atpar/actus-solidity

ACTUS smart contracts

  • 0.4.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
3
Created
Source

ACTUS Solidity

Solidity implementation of ACTUS Contract Types (https://www.actusfrf.org/algorithmic-standard)

Smart Contracts

Core

Contains banking-grade financial logic such as ACTUS day-count & end-of-month conventions, ACTUS datatypes and floating point arithmetic used throughout all ACTUS engines.

Engines

Contains ACTUS state machine engines for each ACTUS Contract Type. An Engine implements the state transition & payoff functions and the schedule generation logic for an ACTUS Contract Type. Engines are stateless smart contracts, thus can be used on-chain as well as off-chain (e.g. by using the EVM as a TEE).

Basic workflow

  1. Define an ACTUS term sheet depending on the financial contract you want to model and derive the LifecycleTerms object from that
  2. Compute EventType-specific schedules via computeNonCyclicScheduleSegment() and computeCyclicScheduleSegment() (you may combine the schedules into one schedule for easier handling) as well as the initial state of the asset via computeInitialState() via the corresponding Engine contract
  3. Evaluate each event in the schedule by computing its payoff via computePayoffForEvent() and the resulting state via computeStateForEvent() (note: the payoff has to be computed from the previous state - always compute payoff first then the state)

Development

Requirements and Setup

See README in root directory.

Testing

yarn test

Implemented Conventions

  • Contract-Role-Sign-Convention (for PAM)
  • Contract-Default-Convention

Business-Day-Count-Conventions

  • SCF (Shift/Calculate following)
  • SCMF (Shift/Calculate modified following)
  • CSF (Calculate/Shift following)
  • CSMF (Calculate/Shift modified following)
  • SCP (Shift/Calculate preceding)
  • SCMP (Shift/Calculate modified preceding)
  • CSP (Calculate/Shift preceding)
  • CSMP (Calculate/Shift modified preceding)

Year-Fraction-Conventions (Day-Count-Methods)

  • A/AISDA (Actual Actual ISDA)
  • A/360 (Actual Three Sixty)
  • A/365 (Actual Three Sixty Five)
  • 30E/360ISDA (Thirty E Three Sixty ISDA)
  • 30E/360 (Thirty E Three Sixty)
  • BUS/252 (Business Two Fifty Two)
  • 1/1

End-Of-Month-Conventions

  • Same Day Shift
  • End-Of-Month Shift

Keywords

FAQs

Package last updated on 12 Aug 2020

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