Contract constructor
Contract({
- OfferPayload? offerPayload,
- Int64? tradeAmount,
- Int64? tradePrice,
- NodeAddress? arbitratorNodeAddress,
- bool? isBuyerMakerAndSellerTaker,
- String? makerAccountId,
- String? takerAccountId,
- String? makerPaymentMethodId,
- String? takerPaymentMethodId,
- List<
int> ? makerPaymentAccountPayloadHash, - List<
int> ? takerPaymentAccountPayloadHash, - PubKeyRing? makerPubKeyRing,
- PubKeyRing? takerPubKeyRing,
- NodeAddress? buyerNodeAddress,
- NodeAddress? sellerNodeAddress,
- String? makerPayoutAddressString,
- String? takerPayoutAddressString,
- String? makerDepositTxHash,
- String? takerDepositTxHash,
Implementation
factory Contract({
OfferPayload? offerPayload,
$fixnum.Int64? tradeAmount,
$fixnum.Int64? tradePrice,
NodeAddress? arbitratorNodeAddress,
$core.bool? isBuyerMakerAndSellerTaker,
$core.String? makerAccountId,
$core.String? takerAccountId,
$core.String? makerPaymentMethodId,
$core.String? takerPaymentMethodId,
$core.List<$core.int>? makerPaymentAccountPayloadHash,
$core.List<$core.int>? takerPaymentAccountPayloadHash,
PubKeyRing? makerPubKeyRing,
PubKeyRing? takerPubKeyRing,
NodeAddress? buyerNodeAddress,
NodeAddress? sellerNodeAddress,
$core.String? makerPayoutAddressString,
$core.String? takerPayoutAddressString,
$core.String? makerDepositTxHash,
$core.String? takerDepositTxHash,
}) {
final $result = create();
if (offerPayload != null) {
$result.offerPayload = offerPayload;
}
if (tradeAmount != null) {
$result.tradeAmount = tradeAmount;
}
if (tradePrice != null) {
$result.tradePrice = tradePrice;
}
if (arbitratorNodeAddress != null) {
$result.arbitratorNodeAddress = arbitratorNodeAddress;
}
if (isBuyerMakerAndSellerTaker != null) {
$result.isBuyerMakerAndSellerTaker = isBuyerMakerAndSellerTaker;
}
if (makerAccountId != null) {
$result.makerAccountId = makerAccountId;
}
if (takerAccountId != null) {
$result.takerAccountId = takerAccountId;
}
if (makerPaymentMethodId != null) {
$result.makerPaymentMethodId = makerPaymentMethodId;
}
if (takerPaymentMethodId != null) {
$result.takerPaymentMethodId = takerPaymentMethodId;
}
if (makerPaymentAccountPayloadHash != null) {
$result.makerPaymentAccountPayloadHash = makerPaymentAccountPayloadHash;
}
if (takerPaymentAccountPayloadHash != null) {
$result.takerPaymentAccountPayloadHash = takerPaymentAccountPayloadHash;
}
if (makerPubKeyRing != null) {
$result.makerPubKeyRing = makerPubKeyRing;
}
if (takerPubKeyRing != null) {
$result.takerPubKeyRing = takerPubKeyRing;
}
if (buyerNodeAddress != null) {
$result.buyerNodeAddress = buyerNodeAddress;
}
if (sellerNodeAddress != null) {
$result.sellerNodeAddress = sellerNodeAddress;
}
if (makerPayoutAddressString != null) {
$result.makerPayoutAddressString = makerPayoutAddressString;
}
if (takerPayoutAddressString != null) {
$result.takerPayoutAddressString = takerPayoutAddressString;
}
if (makerDepositTxHash != null) {
$result.makerDepositTxHash = makerDepositTxHash;
}
if (takerDepositTxHash != null) {
$result.takerDepositTxHash = takerDepositTxHash;
}
return $result;
}