@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
35 lines (28 loc) • 911 B
text/typescript
import { SignedTransaction } from './SignedTransaction'
import { validationRules } from '../../utils/validation'
export class RejectFundsRequest extends SignedTransaction {
ENDPOINT: string = 'chain/reject_funds_request'
ACTION: string = 'rejectfndreq'
ACCOUNT: string = 'fio.reqobt'
fioreqid: number
maxFee: number
technologyProviderId: string
constructor(fioreqid: number, maxFee: number, technologyProviderId: string = '') {
super()
this.fioreqid = fioreqid
this.maxFee = maxFee
this.technologyProviderId = technologyProviderId
this.validationData = { tpid: technologyProviderId || null }
this.validationRules = validationRules.rejectFunds
}
async getData() {
let actor = this.getActor()
let data = {
fio_request_id: this.fioreqid,
max_fee: this.maxFee,
tpid: this.technologyProviderId,
actor: actor
}
return data
}
}