test arbitration protocol refactor

test all (online) trade combinations with disputes
test added dispute states
print trade context and index on failure
improve caching to reduce calls to getBalances()
local test network uses daemon at 48081 by default
various cleanup
This commit is contained in:
woodser 2022-11-04 15:57:42 -04:00
parent 796f14c9ef
commit 7b447022e6
2 changed files with 572 additions and 412 deletions

File diff suppressed because it is too large Load Diff

View File

@ -1467,7 +1467,7 @@ export default class HavenoClient {
/**
* Resolve a dispute. By default, the winner receives the trade amount and the security deposits are returned,
* but the arbitrator may award a custom amount to the winner.
* but the arbitrator may award a custom amount to the winner and the loser will get the rest.
*
* @param {string} tradeId - the id of the trade
* @param {DisputeResult.Winner} winner - the winner of the dispute