mirror of
https://github.com/Qortal/Qortal-Hub.git
synced 2025-06-27 09:31:21 +00:00
42 lines
807 B
TypeScript
42 lines
807 B
TypeScript
// @ts-nocheck
|
|
|
|
/**
|
|
* CrossChain - TradeBot Respond Multiple Request (Buy Action)
|
|
*
|
|
* These are special types of transactions (JSON ENCODED)
|
|
*/
|
|
|
|
export class TradeBotRespondMultipleRequest {
|
|
constructor() {
|
|
// ...
|
|
}
|
|
|
|
createTransaction(txnReq) {
|
|
this.addresses(txnReq.addresses);
|
|
this.foreignKey(txnReq.foreignKey);
|
|
this.receivingAddress(txnReq.receivingAddress);
|
|
|
|
return this.txnRequest();
|
|
}
|
|
|
|
addresses(addresses) {
|
|
this._addresses = addresses;
|
|
}
|
|
|
|
foreignKey(foreignKey) {
|
|
this._foreignKey = foreignKey;
|
|
}
|
|
|
|
receivingAddress(receivingAddress) {
|
|
this._receivingAddress = receivingAddress;
|
|
}
|
|
|
|
txnRequest() {
|
|
return {
|
|
addresses: this._addresses,
|
|
foreignKey: this._foreignKey,
|
|
receivingAddress: this._receivingAddress,
|
|
};
|
|
}
|
|
}
|