@shapeshiftoss/fiosdk
Version:
The Foundation for Interwallet Operability (FIO) is a consortium of leading blockchain wallets, exchanges and payments providers that seeks to accelerate blockchain adoption by reducing the risk, complexity, and inconvenience of sending and receiving cryp
36 lines (29 loc) • 990 B
text/typescript
import { SignedTransaction } from './SignedTransaction'
import { Constants } from '../../utils/constants'
import { validationRules } from '../../utils/validation'
export class RenewFioDomain extends SignedTransaction {
ENDPOINT: string = 'chain/renew_fio_domain'
ACTION: string = 'renewdomain'
ACCOUNT: string = Constants.defaultAccount
fioDomain: string
maxFee: number
technologyProviderId: string
constructor(fioDomain: string, maxFee: number, technologyProviderId: string = '') {
super()
this.fioDomain = fioDomain
this.maxFee = maxFee
this.technologyProviderId = technologyProviderId
this.validationData = { fioDomain: fioDomain, tpid: technologyProviderId || null }
this.validationRules = validationRules.renewFioDomain
}
async getData() {
let actor = this.getActor()
let data = {
fio_domain: this.fioDomain,
max_fee: this.maxFee,
tpid: this.technologyProviderId,
actor: actor
}
return data
}
}