0.1.0-hotfix-app • Published 7 years ago

@atpar/ap-contracts v0.1.0-hotfix-app

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
7 years ago

AP-Contracts

This package contains the ACTUS Protocol smart contracts.

Smart Contracts

ACTUS-Solidity

AP-Contracts depends on actus-solidity and uses ACTUS definitions and ACTUS engines throughout the following smart contracts.

Registries

ACTUS Protocol is made up of two global registries:

  • Asset Registry (stores the addresses of the obligors and beneficiaries and the terms and the current state of assets)
  • Payment Registry (stores payment metadata for settling obligations)

Payment Router

Routes payments from the obligor (payer) to the beneficiary (payee) and registers the amount paid for each obligation in the Payment Registry.

Asset Actor

The Asset Actor acts as the executive of ACTUS Protocol. The Asset Actor registers a new asset by storing the owners of the asset and by deriving and storing its initial state in the Asset Registry. It derives the next state of an asset by querying the last state from the Asset Registry and computing the next state via the corresponding ACTUS engine. In the future dispute resolution will be enforced by the Asset Actor as well. There are going to be multiple Asset Actor contracts depending on the protocol. So we might have a special Asset Actor contract for a hybrid (on-chain / off-chain) implementation of ACTUS Protocol.

AssetIssuer

An asset can be issued from a co-signed order (order which is signed by the maker and taker) via the Asset Issuer. The Asset Issuer verifies the provided signatures and initiates the issuance by passing the terms and the ownership to the Asset Actor.

Tokenization Module (Funds Distribution Token)

Every beneficiary in ACTUS Protocol can be tokenized by updating the beneficiary address in the Ownership Registry with the address of a new instance of the FDT contract. The Payment Router automatically routes future payments to the corresponding FDT contract. The FDT contract handles the distribution of incoming funds to all FD-Token holders. (see EIP-2222 for more information)

Development

Requirements

  • jq (only for generating artifacts)
  • NPM (6.2.0)
  • truffle and ganache-cli
npm install -g truffle
npm install -g ganache-cli

Run

  1. install dependencies
# ap-contracts/
yarn install
  1. deploy contracts and run tests
# ap-contracts/
yarn test
0.4.3

6 years ago

0.4.2

6 years ago

0.4.1

6 years ago

0.4.0

6 years ago

0.4.0-beta.9

6 years ago

0.4.0-beta.8

6 years ago

0.4.0-beta.7

6 years ago

0.4.0-beta.5

6 years ago

0.4.0-beta.3

6 years ago

0.4.0-beta.0

6 years ago

0.4.0-beta.1

6 years ago

0.3.0-beta.1

6 years ago

0.3.0-beta.0

6 years ago

0.2.1-beta.21

6 years ago

0.2.1-beta.20

6 years ago

0.2.1-beta.18

6 years ago

0.2.1-beta.14

6 years ago

0.1.2-sp-app

6 years ago

0.2.1-beta.12

6 years ago

0.2.1-beta.11

6 years ago

0.2.1-beta.10

6 years ago

0.2.1-beta.9

6 years ago

0.2.1-beta.8

6 years ago

0.2.1-beta.7

6 years ago

0.2.1-beta.6

6 years ago

0.2.1-beta.5

6 years ago

0.2.1-beta.3

6 years ago

0.2.1-beta.4

6 years ago

0.2.1-beta.2

6 years ago

0.2.1-beta.1

6 years ago

0.2.1-beta.0

6 years ago

0.2.0

6 years ago

0.1.2-app

7 years ago

0.1.2

7 years ago

0.1.1-app

7 years ago

0.1.1

7 years ago

0.1.0-hotfix-app

7 years ago

0.1.0-app

7 years ago

0.1.0

7 years ago

0.1.0-alpha.28

7 years ago

0.1.0-alpha.26

7 years ago

0.1.0-alpha.25

7 years ago

0.1.0-alpha.24

7 years ago

0.1.0-alpha.23

7 years ago

0.1.0-alpha.22

7 years ago

0.1.0-alpha.21

7 years ago

0.1.0-alpha.20

7 years ago

0.1.0-alpha.19

7 years ago

0.1.0-alpha.18

7 years ago

0.1.0-alpha.16

7 years ago

0.1.0-alpha.8

7 years ago

0.1.0-alpha.7

7 years ago

0.1.0-alpha.5

7 years ago

0.1.0-alpha.3

7 years ago

0.1.0-alpha.2

7 years ago

0.1.0-alpha.1

7 years ago