Deitos-Network / deitos-node

GNU General Public License v3.0
1 stars 1 forks source link

Payments #9

Closed kalaninja closed 8 months ago

kalaninja commented 8 months ago

Implementation of payments.

3 new transactions added:

  1. consumer_prepay_installment - allows consumers to prepay the next installment. Installment should be prepaid before the start on the next installment. Every transaction call prepays one more installment, allowing to prepay as much as wanted.
  2. ip_withdraw_installments - allows IPs to withdraw complete installments. The transaction automatically checks for all payments that can be withdrawn. If all of the payments were withdrawn the agreement status changes to Complete.
  3. ip_terminate_nonpay - allows IPs to terminate an agreement due to non-payment. It automatically transfers all the payments available, transfer the deposit and removes the agreement.