mirror of
https://github.com/Qortal/Qortal-Hub.git
synced 2025-06-07 08:56:58 +00:00
36 lines
629 B
TypeScript
36 lines
629 B
TypeScript
// @ts-nocheck
|
|
|
|
/**
|
|
* 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,
|
|
};
|
|
}
|
|
}
|