<p>This updates the existing gRPC <code>createoffer</code> method to return the new Offer instead of a boolean.  Although <code>createoffer</code> still places the offer, it might be changed to give the user a chance to examine a newly created (and cached) offer before it is placed in a separate <code>confirmoffer offer-id</code>  or  <code>placeoffer offer-id</code> method.</p>
<p>An api test case was added and the CLI's <code>createoffer</code> method was stubbed out -- to be implemented in another PR.</p>
<p>Several unrelated, minor changes were pushed before the most relevant ones.</p>

<hr>

<h4>You can view, comment on, or merge this pull request online at:</h4>
<p>  <a href='https://github.com/bisq-network/bisq/pull/4554'>https://github.com/bisq-network/bisq/pull/4554</a></p>

<h4>Commit Summary</h4>
<ul>
  <li>Replace hardcoded version with Version.java value</li>
  <li>Remove comment</li>
  <li>Move test dispute agent type constants to core</li>
  <li>Fix indentation</li>
  <li>Add simple create payment acct test</li>
  <li>Remove final modifiers</li>
  <li>Don't use static boilerplate helpers if not necessary</li>
  <li>Remove comment</li>
  <li>Add get default payment acct helper</li>
  <li>Stub out createoffer method in CLI</li>
  <li>Change API's createoffer return value from bool to Offer</li>
  <li>Add API CreateOfferTest case</li>
</ul>

<h4>File Changes</h4>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/bisq-network/bisq/pull/4554/files#diff-2e75814f8e05472c745f29bef59dd621">apitest/scripts/mainnet-test.sh</a>
    (6)
  </li>
  <li>
    <strong>A</strong>
    <a href="https://github.com/bisq-network/bisq/pull/4554/files#diff-ab83ed121d460c904088b42ed18de10f">apitest/scripts/version-parser.bash</a>
    (5)
  </li>
  <li>
    <strong>A</strong>
    <a href="https://github.com/bisq-network/bisq/pull/4554/files#diff-e682e7ff1d87bbe0764afc91e1c96b6d">apitest/src/test/java/bisq/apitest/method/CreateOfferTest.java</a>
    (112)
  </li>
  <li>
    <strong>A</strong>
    <a href="https://github.com/bisq-network/bisq/pull/4554/files#diff-5b0cceb2a0d73cceb0928c2ce90a8091">apitest/src/test/java/bisq/apitest/method/CreatePaymentAccountTest.java</a>
    (98)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/bisq-network/bisq/pull/4554/files#diff-6d158dc3de2c806c8ad7b561c9eba091">apitest/src/test/java/bisq/apitest/method/MethodTest.java</a>
    (58)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/bisq-network/bisq/pull/4554/files#diff-f4c0c7647f8f55f67730694f7918bc77">apitest/src/test/java/bisq/apitest/method/RegisterDisputeAgentsTest.java</a>
    (15)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/bisq-network/bisq/pull/4554/files#diff-c373779aeb2c0f02199d152b537b0fd1">cli/src/main/java/bisq/cli/CliMain.java</a>
    (7)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/bisq-network/bisq/pull/4554/files#diff-defe707a4d38994a1dd5a818fc078522">core/src/main/java/bisq/core/api/CoreApi.java</a>
    (48)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/bisq-network/bisq/pull/4554/files#diff-d7353096fea115841d9ac980fe68b3af">core/src/main/java/bisq/core/api/CoreOffersService.java</a>
    (85)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/bisq-network/bisq/pull/4554/files#diff-d4059c1d76936ff1d5186eb5730cb9a4">core/src/main/java/bisq/core/api/CorePaymentAccountsService.java</a>
    (2)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/bisq-network/bisq/pull/4554/files#diff-690160b50eded4c680fd5cbefb2deb72">core/src/main/java/bisq/core/support/dispute/agent/DisputeAgent.java</a>
    (6)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/bisq-network/bisq/pull/4554/files#diff-073db9176bdbf520d57c0bb69bcde77e">daemon/src/main/java/bisq/daemon/grpc/GrpcOffersService.java</a>
    (64)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/bisq-network/bisq/pull/4554/files#diff-328b3309bc03d9ffb3ffb9e780dc7e91">proto/src/main/proto/grpc.proto</a>
    (4)
  </li>
</ul>

<h4>Patch Links:</h4>
<ul>
  <li><a href='https://github.com/bisq-network/bisq/pull/4554.patch'>https://github.com/bisq-network/bisq/pull/4554.patch</a></li>
  <li><a href='https://github.com/bisq-network/bisq/pull/4554.diff'>https://github.com/bisq-network/bisq/pull/4554.diff</a></li>
</ul>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/bisq-network/bisq/pull/4554">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AJFFTNQSVG3GTUMAASVTRB3SHFHYZANCNFSM4RWOJJPQ">unsubscribe</a>.<img src="https://github.com/notifications/beacon/AJFFTNQMDRUQXVASTO4D67DSHFHYZA5CNFSM4RWOJJP2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4KRCBLIA.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/bisq-network/bisq/pull/4554",
"url": "https://github.com/bisq-network/bisq/pull/4554",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>