forked from Qortal/qortal-ui
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
54 lines
1.3 KiB
54 lines
1.3 KiB
2 years ago
|
'use strict'
|
||
|
import TransactionBase from '../TransactionBase.js'
|
||
|
import { QORT_DECIMALS } from '../../constants.js'
|
||
2 years ago
|
|
||
|
export default class CancelGroupBanTransaction extends TransactionBase {
|
||
2 years ago
|
constructor() {
|
||
|
super()
|
||
|
this.type = 27
|
||
|
}
|
||
|
|
||
|
render(html) {
|
||
|
return html`
|
||
|
${this._cancelBanMemberDialog1}
|
||
|
<div style="background: #eee; padding: 8px; margin: 8px 0; border-radius: 5px;">
|
||
|
<span style="color: #000;">${this.theRecipient}</span>
|
||
|
</div>
|
||
|
${this._cancelBanMemberDialog2}
|
||
|
`
|
||
|
}
|
||
|
|
||
|
set cancelBanMemberDialog1(cancelBanMemberDialog1) {
|
||
|
this._cancelBanMemberDialog1 = cancelBanMemberDialog1
|
||
|
}
|
||
|
|
||
|
set cancelBanMemberDialog2(cancelBanMemberDialog2) {
|
||
|
this._cancelBanMemberDialog2 = cancelBanMemberDialog2
|
||
|
}
|
||
|
|
||
|
set rGroupId(rGroupId) {
|
||
|
this._rGroupId = rGroupId
|
||
|
this._rGroupIdBytes = this.constructor.utils.int32ToBytes(this._rGroupId)
|
||
|
}
|
||
|
|
||
|
set recipient(recipient) {
|
||
|
this._recipient = recipient instanceof Uint8Array ? recipient : this.constructor.Base58.decode(recipient)
|
||
|
this.theRecipient = recipient
|
||
|
}
|
||
|
|
||
|
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._rGroupIdBytes,
|
||
|
this._recipient,
|
||
|
this._feeBytes
|
||
|
)
|
||
|
return params
|
||
|
}
|
||
|
}
|