mirror of
https://github.com/Qortal/qortal-ui.git
synced 2025-02-12 10:15:50 +00:00
40 lines
733 B
JavaScript
40 lines
733 B
JavaScript
/**
|
|
* CrossChain - TradeBot Respond Request (Buy Action)
|
|
*
|
|
* These are special types of transactions (JSON ENCODED)
|
|
*/
|
|
|
|
export default class TradeBotRespondRequest {
|
|
constructor() {
|
|
// ...
|
|
}
|
|
|
|
createTransaction(txnReq) {
|
|
this.atAddress(txnReq.atAddress)
|
|
this.foreignKey(txnReq.foreignKey)
|
|
this.receivingAddress(txnReq.receivingAddress)
|
|
|
|
return this.txnRequest()
|
|
}
|
|
|
|
atAddress(atAddress) {
|
|
this._atAddress = atAddress
|
|
}
|
|
|
|
foreignKey(foreignKey) {
|
|
this._foreignKey = foreignKey
|
|
}
|
|
|
|
receivingAddress(receivingAddress) {
|
|
this._receivingAddress = receivingAddress
|
|
}
|
|
|
|
txnRequest() {
|
|
return {
|
|
atAddress: this._atAddress,
|
|
foreignKey: this._foreignKey,
|
|
receivingAddress: this._receivingAddress
|
|
}
|
|
}
|
|
}
|