exchange protocol changes
This commit is contained in:
parent
c0dfcf247c
commit
57d7c988b3
@ -533,7 +533,6 @@ export class CryptoImplementation {
|
|||||||
const coinEvHash = hash(decodeCrock(coinEv));
|
const coinEvHash = hash(decodeCrock(coinEv));
|
||||||
const coinLink = buildSigPS(SignaturePurpose.WALLET_COIN_LINK)
|
const coinLink = buildSigPS(SignaturePurpose.WALLET_COIN_LINK)
|
||||||
.put(decodeCrock(newDenomHash))
|
.put(decodeCrock(newDenomHash))
|
||||||
.put(decodeCrock(oldCoinPub))
|
|
||||||
.put(decodeCrock(transferPub))
|
.put(decodeCrock(transferPub))
|
||||||
.put(coinEvHash)
|
.put(coinEvHash)
|
||||||
.build();
|
.build();
|
||||||
|
@ -29,6 +29,7 @@ import {
|
|||||||
codecForConstString,
|
codecForConstString,
|
||||||
buildCodecForUnion,
|
buildCodecForUnion,
|
||||||
Codec,
|
Codec,
|
||||||
|
codecForNumber,
|
||||||
} from "../util/codec";
|
} from "../util/codec";
|
||||||
import {
|
import {
|
||||||
AmountString,
|
AmountString,
|
||||||
@ -92,7 +93,7 @@ export interface ReserveCreditTransaction {
|
|||||||
/**
|
/**
|
||||||
* Transfer details uniquely identifying the transfer.
|
* Transfer details uniquely identifying the transfer.
|
||||||
*/
|
*/
|
||||||
wire_reference: string;
|
wire_reference: number;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Timestamp of the incoming wire transfer.
|
* Timestamp of the incoming wire transfer.
|
||||||
@ -200,7 +201,7 @@ export const codecForReserveCreditTransaction = (): Codec<
|
|||||||
.property("amount", codecForString())
|
.property("amount", codecForString())
|
||||||
.property("sender_account_url", codecForString())
|
.property("sender_account_url", codecForString())
|
||||||
.property("timestamp", codecForTimestamp)
|
.property("timestamp", codecForTimestamp)
|
||||||
.property("wire_reference", codecForString())
|
.property("wire_reference", codecForNumber())
|
||||||
.property("type", codecForConstString(ReserveTransactionType.Credit))
|
.property("type", codecForConstString(ReserveTransactionType.Credit))
|
||||||
.build("ReserveCreditTransaction");
|
.build("ReserveCreditTransaction");
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user