match the exchange spec
This commit is contained in:
parent
372ddff917
commit
e54df1f167
@ -1922,22 +1922,13 @@ export interface BatchDepositSuccess {
|
|||||||
// Array of deposit confirmation signatures from the exchange
|
// Array of deposit confirmation signatures from the exchange
|
||||||
// Entries must be in the same order the coins were given
|
// Entries must be in the same order the coins were given
|
||||||
// in the batch deposit request.
|
// 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> =>
|
export const codecForBatchDepositSuccess = (): Codec<BatchDepositSuccess> =>
|
||||||
buildCodecForObject<BatchDepositSuccess>()
|
buildCodecForObject<BatchDepositSuccess>()
|
||||||
.property("exchange_pub", codecForString())
|
.property("exchange_pub", codecForString())
|
||||||
.property(
|
.property("exchange_sig", codecForString())
|
||||||
"exchange_sigs",
|
|
||||||
codecForList(codecForDepositConfirmationSignature()),
|
|
||||||
)
|
|
||||||
.property("exchange_timestamp", codecForTimestamp)
|
.property("exchange_timestamp", codecForTimestamp)
|
||||||
.property("transaction_base_url", codecOptional(codecForString()))
|
.property("transaction_base_url", codecOptional(codecForString()))
|
||||||
.build("BatchDepositSuccess");
|
.build("BatchDepositSuccess");
|
||||||
|
Loading…
Reference in New Issue
Block a user