ℹ️DealsRepo

A public library defines several state checkpoints on the time sequence

Name

DealsRepo

Dependent Contract

EnumerableSet, MotionsRepo, SwapsRepo, SharesRepo, IMeetingMinutes, IRegisterOfShares

API

API
Function Description

Parse byte arrays into a Head objects.

Codify Head objects into byte arrays.

Add a new Deal object, return with the sequence number.

Register the Deal object and return with the sequence number.

Delete the Deal object, and return with a success flag.

Lock underlying shares of the Deal and return with a success flag.

Release underlying shares of the Deal and return with a success flag.

Confirm conditions of the Deal have all been fulfilled and check the hash lock.

Input the hash lock key to deliver the shares and return with a success flag.

Seller delivers the shares directly and return with a success flag.

Terminate the Deal and return with a success flag.

(when anti-dilution rights are executed) Accept the gift shares and return with a success flag.

Calculate the category of the investment agreement.

Create an swap transaction (When a share transaction is rejected by a shareholders' meeting and the seller requests that the rejector purchase the underlying shares on equal terms) .

The swap obligor pays the consideration to subscribe for the underlying share (release the pledged share while deliverying underlying shares).

The swap right holder (after expiration) terminates the transaction to obtain the pledged shares.

Buyer pays the consideration of approved transaction to settle, and return with a success flag.

(When exercising anti-dilution rights) Label the combination of underlying transaction and underlying shares.

Get the type of Investment Agreement.

Get the counter value of Deals.

Get the counter value of clsed Deals.

Query whether the Deal exists.

Get Deals objects.

Get sequence list of Deals.

Get the counter value of swap transaction.

Obtain the total amount of paid-in contribution of underlying shares (swap transaction).

Source Code:

DealsRepo