refactor data model for test trade context

use object-oriented context for tests
factor out trade peer context to TradePeer
test expected balances end-to-end
test split output fee if maker reserves exact amount
This commit is contained in:
woodser 2023-10-28 10:20:56 -04:00
parent 708fb3c6d3
commit 02cc0faded
7 changed files with 1101 additions and 590 deletions

View file

@ -1663,6 +1663,12 @@ export class OfferInfo extends jspb.Message {
getArbitratorSigner(): string;
setArbitratorSigner(value: string): OfferInfo;
getSplitOutputTxHash(): string;
setSplitOutputTxHash(value: string): OfferInfo;
getSplitOutputTxFee(): string;
setSplitOutputTxFee(value: string): OfferInfo;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): OfferInfo.AsObject;
static toObject(includeInstance: boolean, msg: OfferInfo): OfferInfo.AsObject;
@ -1700,6 +1706,8 @@ export namespace OfferInfo {
versionNr: string,
protocolVersion: number,
arbitratorSigner: string,
splitOutputTxHash: string,
splitOutputTxFee: string,
}
}