public static bool depositInBatch(byte[][] _senders, byte[][] _channelIds, byte[][] _receivers, BigInteger[] _transferFromAmounts) { BasicMethods.assert( _channelIds.Length == _receivers.Length && _receivers.Length == _transferFromAmounts.Length && _transferFromAmounts.Length == _senders.Length, "Lengths do not match" ); bool balanceLimited = LedgerBalanceLimit.getBalanceLimitsEnabledInner(); for (int i = 0; i < _channelIds.Length; i++) { LedgerOperation.depositInner(_senders[i], getLedger(), _channelIds[i], _receivers[i], _transferFromAmounts[i], balanceLimited); } return(true); }
public static bool deposit(byte[] _sender, byte[] _channelId, byte[] _receiver, BigInteger _transferFromAmount) { LedgerStruct.Ledger ledger = getLedger(); LedgerOperation.depositInner(_sender, ledger, _channelId, _receiver, _transferFromAmount, LedgerBalanceLimit.getBalanceLimitsEnabledInner()); return(true); }