mirror of https://github.com/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.
23 lines
495 B
23 lines
495 B
2 years ago
|
'use strict'
|
||
3 years ago
|
import TransactionBase from './TransactionBase.js'
|
||
|
|
||
|
export default class DelegationTransaction extends TransactionBase {
|
||
2 years ago
|
constructor() {
|
||
|
super()
|
||
|
this.type = 18
|
||
|
}
|
||
3 years ago
|
|
||
2 years ago
|
set superNodeAddress(superNodeAddress) {
|
||
|
this._superNodeAddress = superNodeAddress instanceof Uint8Array ? superNodeAddress : this.constructor.Base58.decode(superNodeAddress)
|
||
|
}
|
||
3 years ago
|
|
||
2 years ago
|
get params() {
|
||
|
const params = super.params
|
||
|
params.push(
|
||
|
this._superNodeAddress,
|
||
|
this._feeBytes
|
||
|
)
|
||
|
return params
|
||
|
}
|
||
3 years ago
|
}
|