UNPKG

@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) 1 kB
import { SignedTransaction } from './SignedTransaction' import { Constants } from '../../utils/constants' import { validationRules } from '../../utils/validation' export class RenewFioAddress extends SignedTransaction { ENDPOINT: string = 'chain/renew_fio_address' ACTION: string = 'renewaddress' ACCOUNT: string = Constants.defaultAccount fioAddress: string maxFee: number technologyProviderId: String constructor(fioAddress: string, maxFee: number, technologyProviderId: string = '') { super() this.fioAddress = fioAddress this.maxFee = maxFee this.technologyProviderId = technologyProviderId this.validationData = { fioAddress: fioAddress, tpid: technologyProviderId || null } this.validationRules = validationRules.renewFioAddress } async getData() { let actor = this.getActor() let data = { fio_address: this.fioAddress, max_fee: this.maxFee, tpid: this.technologyProviderId, actor: actor } return data } }