mirror of
https://github.com/Qortal/qortal-ui.git
synced 2025-11-13 19:17:55 +00:00
Redsign qortal-ui repo
This commit is contained in:
27
crypto/api/transactions/PublicizeTransaction.js
Normal file
27
crypto/api/transactions/PublicizeTransaction.js
Normal file
@@ -0,0 +1,27 @@
|
||||
"use strict";
|
||||
import ChatBase from "./chat/ChatBase.js"
|
||||
import { QORT_DECIMALS } from "../constants.js"
|
||||
|
||||
export default class PublicizeTransaction extends ChatBase {
|
||||
constructor() {
|
||||
super()
|
||||
this.type = 19
|
||||
this.fee = 0
|
||||
}
|
||||
|
||||
set proofOfWorkNonce(proofOfWorkNonce) {
|
||||
this._proofOfWorkNonce = this.constructor.utils.int32ToBytes(proofOfWorkNonce)
|
||||
}
|
||||
set fee(fee) {
|
||||
this._fee = fee * QORT_DECIMALS
|
||||
this._feeBytes = this.constructor.utils.int64ToBytes(this._fee)
|
||||
}
|
||||
get params() {
|
||||
const params = super.params;
|
||||
params.push(
|
||||
this._proofOfWorkNonce,
|
||||
this._feeBytes
|
||||
)
|
||||
return params;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user