import { Payload } from './payload'; import { TxInput } from './tx_input'; import { TxType } from './type'; import {TemplateAccount} from './template_account' export class GovTx implements Payload{ Inputs:TxInput[]= new Array() AccountUpdates:TemplateAccount[]= new Array() constructor(){ } toString() { return JSON.stringify(this) } getInputs() { return this.Inputs } addInput(address,sequence){ let input=new TxInput() input.setAddress(address) input.setSequence(sequence) this.Inputs.push(input) } addAccountUpdates(account:TemplateAccount){ this.AccountUpdates.push(account) } type() { return TxType.TypeGovernance } }