TransactionPlan constructor
TransactionPlan({
- Int64? availableAmount,
- Int64? amount,
- Int64? fee,
- Int64? change,
- Iterable<
TokenAmount> ? availableTokens, - Iterable<
TokenAmount> ? outputTokens, - Iterable<
TokenAmount> ? changeTokens, - Iterable<
TxInput> ? utxos, - SigningError? error,
Implementation
factory TransactionPlan({
$fixnum.Int64? availableAmount,
$fixnum.Int64? amount,
$fixnum.Int64? fee,
$fixnum.Int64? change,
$core.Iterable<TokenAmount>? availableTokens,
$core.Iterable<TokenAmount>? outputTokens,
$core.Iterable<TokenAmount>? changeTokens,
$core.Iterable<TxInput>? utxos,
$0.SigningError? error,
}) {
final _result = create();
if (availableAmount != null) {
_result.availableAmount = availableAmount;
}
if (amount != null) {
_result.amount = amount;
}
if (fee != null) {
_result.fee = fee;
}
if (change != null) {
_result.change = change;
}
if (availableTokens != null) {
_result.availableTokens.addAll(availableTokens);
}
if (outputTokens != null) {
_result.outputTokens.addAll(outputTokens);
}
if (changeTokens != null) {
_result.changeTokens.addAll(changeTokens);
}
if (utxos != null) {
_result.utxos.addAll(utxos);
}
if (error != null) {
_result.error = error;
}
return _result;
}