34 lines
576 B
JavaScript
Raw Normal View History

2021-12-25 14:39:47 +01:00
/**
* CrossChain - DELETE TradeOffer
*
* These are special types of transactions (JSON ENCODED)
*/
export default class DeleteTradeOffer {
constructor() {
// ...
}
createTransaction(txnReq) {
this.creatorPublicKey(txnReq.creatorPublicKey)
this.atAddress(txnReq.atAddress)
return this.txnRequest()
}
creatorPublicKey(creatorPublicKey) {
this._creatorPublicKey = creatorPublicKey
}
atAddress(atAddress) {
this._atAddress = atAddress
}
txnRequest() {
return {
creatorPublicKey: this._creatorPublicKey,
atAddress: this._atAddress
}
}
2021-12-25 14:39:47 +01:00
}