match the exchange spec

This commit is contained in:
Sebastian 2023-10-02 13:53:32 -03:00
parent 372ddff917
commit e54df1f167
No known key found for this signature in database
GPG Key ID: 173909D1A5F66069

View File

@ -1922,22 +1922,13 @@ export interface BatchDepositSuccess {
// Array of deposit confirmation signatures from the exchange
// Entries must be in the same order the coins were given
// in the batch deposit request.
exchange_sigs: DepositConfirmationSignature[];
exchange_sig: EddsaSignatureString;
}
export const codecForDepositConfirmationSignature =
(): Codec<DepositConfirmationSignature> =>
buildCodecForObject<DepositConfirmationSignature>()
.property("exchange_sig", codecForString())
.build("DepositConfirmationSignature");
export const codecForBatchDepositSuccess = (): Codec<BatchDepositSuccess> =>
buildCodecForObject<BatchDepositSuccess>()
.property("exchange_pub", codecForString())
.property(
"exchange_sigs",
codecForList(codecForDepositConfirmationSignature()),
)
.property("exchange_sig", codecForString())
.property("exchange_timestamp", codecForTimestamp)
.property("transaction_base_url", codecOptional(codecForString()))
.build("BatchDepositSuccess");