From 1954fc078294b3a0aec1beedfb83db03a3341e10 Mon Sep 17 00:00:00 2001 From: sairajzero Date: Sun, 26 Apr 2020 01:04:12 +0530 Subject: [PATCH] Improved sendTxMultiple and writeDataMultiple sendTxMultiple: There are 2 modes (given send amount, preserve ratio) - Given Send Amount: Uses the given send amount from each sender IDs. Pass the senderPrivKeys as object with amount to invoke this mode eg. { privateKey1: sendAmt1, privateKey2: sendAmt2...} - preserveRatio: The ratio of the balance of the senders are maintained. Pass the senderPrivKeys as array of private keys. eg. [privatekey1, privatekey2....] *Note: receivers must always be object of floIDs with receive amount. eg. {receiverID1: receiveAmt1, receiver2: receiveAmt2...} writeDataMultiple: There are 2 modes (preserveRatio, equalContribution) - preserveRatio: preserves the ratio of the balance of senders - equalContribution: all senders contribute equal amount to the transaction Note: *senderPrivKey and receivers are arrays eq. [privateKey1, privateKey2, ..] and [receiverID1, receiverID2...] *sends default amount (floGlobals.sendAmt) to each receiver) *last (4th) parameter is optional: (default) true: invokes preserveRatio mode false: invokes equalContibution mode --- standard_Operations.html | 193 ++++++++++++++++++++++++--------------- 1 file changed, 118 insertions(+), 75 deletions(-) diff --git a/standard_Operations.html b/standard_Operations.html index d1f9ff5..def8ddd 100644 --- a/standard_Operations.html +++ b/standard_Operations.html @@ -3,7 +3,6 @@ FLO Standard Operators -