MsgCreateTrade constructor

MsgCreateTrade({
  1. String? creator,
  2. Iterable<CoinInput>? coinInputs,
  3. Iterable<ItemInput>? itemInputs,
  4. Iterable<Coin>? coinOutputs,
  5. Iterable<ItemRef>? itemOutputs,
  6. String? extraInfo,
})

Implementation

factory MsgCreateTrade({
  $core.String? creator,
  $core.Iterable<$4.CoinInput>? coinInputs,
  $core.Iterable<$4.ItemInput>? itemInputs,
  $core.Iterable<$2.Coin>? coinOutputs,
  $core.Iterable<$8.ItemRef>? itemOutputs,
  $core.String? extraInfo,
}) {
  final _result = create();
  if (creator != null) {
    _result.creator = creator;
  }
  if (coinInputs != null) {
    _result.coinInputs.addAll(coinInputs);
  }
  if (itemInputs != null) {
    _result.itemInputs.addAll(itemInputs);
  }
  if (coinOutputs != null) {
    _result.coinOutputs.addAll(coinOutputs);
  }
  if (itemOutputs != null) {
    _result.itemOutputs.addAll(itemOutputs);
  }
  if (extraInfo != null) {
    _result.extraInfo = extraInfo;
  }
  return _result;
}