Serialize() {
        const buf = new util_1.default.Writer();
        // Name (string)
        {
            bytes_1.WriteVarChar(buf, this.name, 8);
        }
        // VoteType (byte)
        {
            bytes_1.write(buf, this.vote_type, 'byte');
        }
        // TallyLogic (byte)
        {
            bytes_1.write(buf, this.tally_logic, 'byte');
        }
        // ThresholdPercentage (uint8)
        {
            bytes_1.write(buf, this.threshold_percentage, 'uint8');
        }
        // VoteMultiplierPermitted (bool)
        {
            bytes_1.write(buf, this.vote_multiplier_permitted, 'bool');
        }
        // HolderProposalFee (uint64)
        {
            bytes_1.write(buf, this.holder_proposal_fee, 'uint64');
        }
        return buf.buf;
    }
// Serialize returns the byte representation of the message.
Serialize returns the byte representation of the message.
Serialize returns the byte representation of the message .
Serialize() {
        const buf = new util_1.default.Writer();
        {
            bytes_1.WriteVarChar(buf, this.name, 8);
        }
        {
            bytes_1.write(buf, this.vote_type, 'byte');
        }
        {
            bytes_1.write(buf, this.tally_logic, 'byte');
        }
        {
            bytes_1.write(buf, this.threshold_percentage, 'uint8');
        }
        {
            bytes_1.write(buf, this.vote_multiplier_permitted, 'bool');
        }
        {
            bytes_1.write(buf, this.holder_proposal_fee, 'uint64');
        }
        return buf.buf;
    }
Serialize ( ) { const buf = new util_1 . default . Writer ( ) ; { bytes_1 . WriteVarChar ( buf , this . name , 8 ) ; } { bytes_1 . write ( buf , this . vote_type , 'byte' ) ; } { bytes_1 . write ( buf , this . tally_logic , 'byte' ) ; } { bytes_1 . write ( buf , this . threshold_percentage , 'uint8' ) ; } { bytes_1 . write ( buf , this . vote_multiplier_permitted , 'bool' ) ; } { bytes_1 . write ( buf , this . holder_proposal_fee , 'uint64' ) ; } return buf . buf ; }
Serialize returns the byte representation of the message.
Serialize returns the byte representation of the message .
// Name (string) // VoteType (byte) // TallyLogic (byte) // ThresholdPercentage (uint8) // VoteMultiplierPermitted (bool) // HolderProposalFee (uint64)