Serialize() {
        const buf = new util_1.default.Writer();
        // change_administration_address (bool)
        {
            bytes_1.write(buf, this.change_administration_address, 'bool');
        }
        // change_operator_address (bool)
        {
            bytes_1.write(buf, this.change_operator_address, 'bool');
        }
        // contract_revision (uint32)
        {
            bytes_1.write(buf, this.contract_revision, 'uint32');
        }
        // amendments ([]Amendment)
        {
            bytes_1.WriteVariableSize(buf, this.amendments.length, 8, 8);
            this.amendments.forEach((value) => {
                buf.write(value.Serialize());
            });
        }
        // ref_tx_id (TxId)
        {
            buf.write(this.ref_tx_id.Serialize());
        }
        return buf.buf;
    }
// serialize returns the full OP_RETURN payload bytes.
serialize returns the full OP_RETURN payload bytes.
serialize returns the full OP_RETURN payload bytes .
Serialize() {
        const buf = new util_1.default.Writer();
        {
            bytes_1.write(buf, this.change_administration_address, 'bool');
        }
        {
            bytes_1.write(buf, this.change_operator_address, 'bool');
        }
        {
            bytes_1.write(buf, this.contract_revision, 'uint32');
        }
        {
            bytes_1.WriteVariableSize(buf, this.amendments.length, 8, 8);
            this.amendments.forEach((value) => {
                buf.write(value.Serialize());
            });
        }
        {
            buf.write(this.ref_tx_id.Serialize());
        }
        return buf.buf;
    }
Serialize ( ) { const buf = new util_1 . default . Writer ( ) ; { bytes_1 . write ( buf , this . change_administration_address , 'bool' ) ; } { bytes_1 . write ( buf , this . change_operator_address , 'bool' ) ; } { bytes_1 . write ( buf , this . contract_revision , 'uint32' ) ; } { bytes_1 . WriteVariableSize ( buf , this . amendments . length , 8 , 8 ) ; this . amendments . forEach ( ( value ) => { buf . write ( value . Serialize ( ) ) ; } ) ; } { buf . write ( this . ref_tx_id . Serialize ( ) ) ; } return buf . buf ; }
serialize returns the full OP_RETURN payload bytes.
serialize returns the full OP_RETURN payload bytes .
// change_administration_address (bool) // change_operator_address (bool) // contract_revision (uint32) // amendments ([]Amendment) // ref_tx_id (TxId)