Serialize() {
        const buf = new util_1.default.Writer();
        // Address (PublicKeyHash)
        {
            buf.write(this.address.Serialize());
        }
        // Quantity (uint64)
        {
            bytes_1.write(buf, this.quantity, 'uint64');
        }
        // OracleSigAlgorithm (uint8)
        {
            bytes_1.write(buf, this.oracle_sig_algorithm, 'uint8');
        }
        // OracleIndex (uint8)
        if (this.oracle_sig_algorithm === 1) {
            bytes_1.write(buf, this.oracle_index, 'uint8');
        }
        // OracleConfirmationSig ([]byte)
        if (this.oracle_sig_algorithm === 1) {
            bytes_1.WriteVarBin(buf, this.oracle_confirmation_sig, 8);
        }
        // OracleSigBlockHeight (uint32)
        if (this.oracle_sig_algorithm === 1) {
            bytes_1.write(buf, this.oracle_sig_block_height, 'uint32');
        }
        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();
        {
            buf.write(this.address.Serialize());
        }
        {
            bytes_1.write(buf, this.quantity, 'uint64');
        }
        {
            bytes_1.write(buf, this.oracle_sig_algorithm, 'uint8');
        }
        if (this.oracle_sig_algorithm === 1) {
            bytes_1.write(buf, this.oracle_index, 'uint8');
        }
        if (this.oracle_sig_algorithm === 1) {
            bytes_1.WriteVarBin(buf, this.oracle_confirmation_sig, 8);
        }
        if (this.oracle_sig_algorithm === 1) {
            bytes_1.write(buf, this.oracle_sig_block_height, 'uint32');
        }
        return buf.buf;
    }
Serialize ( ) { const buf = new util_1 . default . Writer ( ) ; { buf . write ( this . address . Serialize ( ) ) ; } { bytes_1 . write ( buf , this . quantity , 'uint64' ) ; } { bytes_1 . write ( buf , this . oracle_sig_algorithm , 'uint8' ) ; } if ( this . oracle_sig_algorithm === 1 ) { bytes_1 . write ( buf , this . oracle_index , 'uint8' ) ; } if ( this . oracle_sig_algorithm === 1 ) { bytes_1 . WriteVarBin ( buf , this . oracle_confirmation_sig , 8 ) ; } if ( this . oracle_sig_algorithm === 1 ) { bytes_1 . write ( buf , this . oracle_sig_block_height , 'uint32' ) ; } return buf . buf ; }
Serialize returns the byte representation of the message.
Serialize returns the byte representation of the message .
// Address (PublicKeyHash) // Quantity (uint64) // OracleSigAlgorithm (uint8) // OracleIndex (uint8) // OracleConfirmationSig ([]byte) // OracleSigBlockHeight (uint32)